- Home /
Animation does not move player
I got a character roll on Mixamo but when the animation plays the character rolls forward a good ways but then he phases back where he was when he goes back to the idle animation. I want the animation to have the player object be moved along with it so that when the animation finishes the roll the idle starts where the last animation finished. :P
Answer by RadonRaph · Nov 09, 2019 at 10:09 AM
Hello @carlegos, In unity animation are in local space so if your idle animation is in 0,0,0 the player we will get back to 0,0,0 each time idle animation is played.
If you rolls animation make the character move for example by 5 on X you need to make the animation not change your position (by deleting x,z keys) and move your character in the real world using Character controller or Rigidbody :)
Hope that help, Raph.
Where can I turn off the x and z keys for the animation within Unity? Btw Thank you :D
Right click on properties :) https://puu.sh/ED2XL/14353d94cc.png
Your answer
Follow this Question
Related Questions
One Key press to trigger .MoveTowards to go through its whole movement. 2 Answers
transform.position not setting position OR animation setting position even though it shouldn't 0 Answers
How to do a "dash"-movement, set distance on key-input? 0 Answers
Rig object offsets during animations 0 Answers
When does an animator change the transform of a bone 0 Answers