diff options
Diffstat (limited to 'Assets/Scripts/Test/RootConstainTest.cs')
-rw-r--r-- | Assets/Scripts/Test/RootConstainTest.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Assets/Scripts/Test/RootConstainTest.cs b/Assets/Scripts/Test/RootConstainTest.cs index 3de174ee..4cd9dbb1 100644 --- a/Assets/Scripts/Test/RootConstainTest.cs +++ b/Assets/Scripts/Test/RootConstainTest.cs @@ -25,10 +25,10 @@ public class RootConstainTest : MonoBehaviour {
//animator.ApplyBuiltinRootMotion();
transform.position += new Vector3(animator.deltaPosition.x, animator.deltaPosition.y, 0);
- transform.forward = animator.deltaRotation * transform.forward;
- Vector3 euler = animator.deltaRotation.ToEuler();
- euler.x = euler.z = euler.y = 0;
- transform.rotation *= Quaternion.Euler(euler);
+ //transform.forward = animator.deltaRotation * transform.forward;
+ //Vector3 euler = animator.deltaRotation.ToEuler();
+ //euler.x = euler.z = euler.y = 0;
+ //transform.rotation *= Quaternion.Euler(euler);
}
}
|