- Home /
Mecanim animator is not moving character's root position.
This has possibly changed with the more recent Unity updates. My animations look fine and move the root position of the character in preview mode. However, in the game the character does the animation without moving position, and it looks really bad.
The player seems to have this awkwardness with or without a rigidbody. He seems to be moving just fine with walk and run animations. Are there any known issues with using mecanim to perform animations that cause the character to move around a bit?
Have you double checked that the animations are root and that "use root motion" is checked? Just a mistake I used to make.
@sfbaystudios Yes, apply root motion is selected. Root Transform Position (XZ) is not baked into pose, but maybe you mean something else by "animations are root"?
@sfbaystudios I decided that maybe you mean I should in fact bake the XZ into the pose. I tried it, and the character now moves root. Some of the movement is pretty chaotic though, almost like it didn't bake every position.
@sfbaystudios You're a genius! I just had to also bake in the root transform rotation as well. I've been using $$anonymous$$ecanim the same way for months now, but I never noticed that the characters weren't moving with the animations. $$anonymous$$aybe my $$anonymous$$d was playing tricks on me, or the system changed. Anyways, thank you! Convert your comment to answer, and I'll select it.
@sfbaystudios please post as an answer so that I can select your answer.
Answer by infinitypbr · Jan 14, 2014 at 10:23 PM
Have you double checked that the animations are root and that "use root motion" is checked? Just a mistake I used to make.
Your answer
Follow this Question
Related Questions
Mecanim additive animation sends characters flying? 1 Answer
My Mecanim-Generic is screwing with the gravity 2 Answers
Mecanim and Physics 3 Answers
Animator component makes Character fall a bit 3 Answers
How to handle knockback 0 Answers