- Home /
Mecanim avatar moving on x,z
Hey all,
I'm using mecanim for my characters and I'm having issues with my walk and run cycles moving on the x,z axis.
The Animation starts like this:
After the animation runs a few times (or only once depending on anim settings), it moves from it's original x,z and ends up like this.
I've messed around with the 'Root Transform Position (XZ)' setting and have tried with original and center of mass, baked and unbaked.
Does anyone have any idea why this would be happening/how I could possibly fix it?
Note: The artist working on the project noted that the maya export setting are the same on all their animations. Other animations on this rig work fine, it's just these two.
Answer by anshul-bhardwaj · Feb 26, 2013 at 05:01 AM
you should try the Freeze rotation and freeze position component in attached rigidbody component of the character that might help u. Freeze the Y rotation of your character
The rigidbody is parent of the avatar, so I don't think that would help me. I also have a custom mover that uses physics impulses for movement and rotation, so I can't freeze them. Thanks anyway :)
Your answer
Follow this Question
Related Questions
Animation wont move forward 0 Answers
Handling input, movement, animation with scripts? 1 Answer
Mixing Unity Mecanim and Scripted Bones/States 1 Answer
Mecanim blend moves character? 1 Answer