Question by
AndyNeoman · Sep 16, 2017 at 11:06 AM ·
c#rotation axis
Scripting Root motion and rotation
https://docs.unity3d.com/ScriptReference/Transform.Rotate.html
I am using this method to move an 'inplace' animation. It works fine if the players rotation is 0,0,0,0 but as soon as I rotate the player the motion is not in the required direction.
This is expected as the animation moves along the set transform.z position but how do I account for the rotation angle so with the animations direction is correct.
Comment
Your answer
Follow this Question
Related Questions
Unity 2D rotation not smooth? 0 Answers
How to make a gameObject's Y rotation being another gameObjects' X rotation 1 Answer
Why won't my model rotate up on X axis? 1 Answer
Continue rotating/ tilting object after key is released? 0 Answers
Different values for Axis parameters "Mouse Y" (Z) 0 Answers