- Home /
Character Animation - Roll Forward
Hi,
I´m new to unity and I need some help.
I have modeled a little Character in Maya and created some animations for it. One for Jumping and one for Rolling forward. I imported it to unity with a FBX-File. The jumping animation works good but not the rolling-forward animation.
Because every time I hit a button to start the animation the character resets itself to the origin, plays the animation and then jumps back to his last position.
I need the rolling-forward animation as an ability for my character, so every time the user hits a button the player should roll forward from his current position and then save the new position so he can move further from there.
I now why this happens but I don´t know how to prevent it. Is there any way to prevent it? Scripting? Physics?
My Character has the shape of a cube ((he is a robot))
Answer by Inok · Dec 29, 2014 at 01:23 PM
Look at this: Root Motion
So if you want the motion was taken from the animation then make sure when writing run animation you move the main(root) bone of the character. Then you will be able to convert(bake) motion of root bone to global motion, you need to activate the checkbox "apply root motion" in the component "Animator".
Your answer
Follow this Question
Related Questions
iTween for Customizable-at-runtime Character Body Animations 0 Answers
blender model not playing animations 0 Answers
How to make animations 0 Answers