diff options
author | chai <chaifix@163.com> | 2020-10-13 19:08:27 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-10-13 19:08:27 +0800 |
commit | 0a84de586c479a32959bd30fbf1a05abac1557e1 (patch) | |
tree | ad3a9cc6e5019c1d3939cd031346f29795201f1a /Assets/Scripts/Test/RootConstainTest.cs | |
parent | 71c03c717b189ee0ff0e62d219f02b8ab336c40a (diff) |
+frank animation
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);
}
}
|