- Home /
Animations with no Y position changes gets affected by Rigidbody Gravity
Hi
I have a simple non-humanoid character model rigged and animated.
I add the model to the scene and give it an Animator with its default animation set to play and a Rigidbody to one of its root bone.
When I hit play the animation plays, but the character falls as it's affected by Gravity.
That animation has no Y value change in its animation and I tested another animation (separate file) which does have a Y position change in its root and that one does not fall to Gravity even after the animation has finished playing.
What is going on here?
Gravity applies force in -y direction. since your model is not keyed in y axis it falls. You have to place a ground(collider) and collider on the player.
But even when the animation has finished playing and there is no more y value manipulation from the animation the character stays exactly in place on the second animation
The problem is not that the character falls through the world, it's that he falls at all and not staying in place
Your answer
Follow this Question
Related Questions
How to have multiple animations (Walk, run, idle)? 0 Answers
Model hands warped on import. 0 Answers
Gravity does not work with animation. 2 Answers
Stopping animation affecting physics 0 Answers
Animation causes rigidbody to move 0 Answers