- Home /
Trouble using root motion.
I'm having trouble using root motion in Unity 4.6~. I have a mech anim state machine with an idle and a walk. The walk moves the transform of the Animator owner 1 unit. When the state switches back to idle, that translation is undone (the idle has no animation clip on it). I have root motion checked, I'd expect the translation done by the walk anim to stay applied. Does anyone know how to accomplish this type of behavior?
Thanks
Thanks for the reply. I am not importing animations. $$anonymous$$erely making animation clips on each state of the state machine. The translation is actually x-y (maybe I should rotate my 2d game board). I'm thinking root motion might not be working because I don't have a rig. $$anonymous$$aybe I should be looking into a solution that smoothly keeps the translation of a state as it resets back to the idle state.
You can refer to this article, which should get things going for you.
http://docs.unity3d.com/$$anonymous$$anual/ScriptingRoot$$anonymous$$otion.html
Your answer
Follow this Question
Related Questions
Issues with Root Motion changing character position between animations 0 Answers
How to disable/override a part of an animation created in Unity 2017.4 0 Answers
Smooth transition of position between animations 0 Answers
Continuously Play Animation Forwards and Backwards with Mechanim 0 Answers
Setting Animator animations time. 1 Answer