summaryrefslogtreecommitdiff
path: root/Assets/Scripts/IKTest.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/IKTest.cs')
-rw-r--r--Assets/Scripts/IKTest.cs27
1 files changed, 0 insertions, 27 deletions
diff --git a/Assets/Scripts/IKTest.cs b/Assets/Scripts/IKTest.cs
deleted file mode 100644
index 600fe274..00000000
--- a/Assets/Scripts/IKTest.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class IKTest : MonoBehaviour
-{
- public GameObject Go_FootIK;
- [Range(0,1)]
- public float IKWeight;
-
- private Animator animator;
-
- private void OnAnimatorIK(int layerIndex)
- {
- if(animator == null)
- {
- animator = GetComponent<Animator>();
- }
-
- animator.SetIKPositionWeight(AvatarIKGoal.LeftFoot, IKWeight);
- animator.SetIKPosition(AvatarIKGoal.LeftFoot, Go_FootIK.transform.position);
-
- animator.SetIKRotationWeight(AvatarIKGoal.LeftFoot, IKWeight);
- animator.SetIKRotation(AvatarIKGoal.LeftFoot, Go_FootIK.transform.rotation);
- }
-
-}