From 22891bf59032ba88262824255a706d652031384b Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 10 Mar 2022 14:07:40 +0800 Subject: * move folder --- Assets/Scripts/Test/IKTest.cs | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 Assets/Scripts/Test/IKTest.cs (limited to 'Assets/Scripts/Test/IKTest.cs') diff --git a/Assets/Scripts/Test/IKTest.cs b/Assets/Scripts/Test/IKTest.cs deleted file mode 100644 index fdc5c2a3..00000000 --- a/Assets/Scripts/Test/IKTest.cs +++ /dev/null @@ -1,33 +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 Start() - { - - } - - private void OnAnimatorIK(int layerIndex) - { - if(animator == null) - { - animator = GetComponent(); - } - - 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); - - } - -} -- cgit v1.1-26-g67d0