aboutsummaryrefslogtreecommitdiff
path: root/JamHelper/Assets/JamUtils/FastIK/Scripts/Sample/SampleSinMover.cs
diff options
context:
space:
mode:
Diffstat (limited to 'JamHelper/Assets/JamUtils/FastIK/Scripts/Sample/SampleSinMover.cs')
-rw-r--r--JamHelper/Assets/JamUtils/FastIK/Scripts/Sample/SampleSinMover.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/JamHelper/Assets/JamUtils/FastIK/Scripts/Sample/SampleSinMover.cs b/JamHelper/Assets/JamUtils/FastIK/Scripts/Sample/SampleSinMover.cs
new file mode 100644
index 0000000..0607082
--- /dev/null
+++ b/JamHelper/Assets/JamUtils/FastIK/Scripts/Sample/SampleSinMover.cs
@@ -0,0 +1,21 @@
+using UnityEngine;
+
+namespace DitzelGames.FastIK
+{
+ public class SampleSinMover : MonoBehaviour
+ {
+ public Vector3 Dir;
+ public Vector3 Start;
+
+ private void Awake()
+ {
+ Start = transform.position;
+ }
+
+ void Update()
+ {
+ //just move the object from a to b and back
+ transform.position = Start + Dir * Mathf.Sin(Time.timeSinceLevelLoad);
+ }
+ }
+}