From 0a84de586c479a32959bd30fbf1a05abac1557e1 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 13 Oct 2020 19:08:27 +0800 Subject: +frank animation --- Assets/Scripts/Test/RootConstainTest.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Assets/Scripts/Test/RootConstainTest.cs') 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); } } -- cgit v1.1-26-g67d0