- Home /
Animation Controller not returning character to correct position.
I have a humanoid character which has two animations - an "Idle" (standing) animation and a drop-down-to-crouching animation. I have set these two animations on two layers of an animation controller, set to over-write. The crouching animation layer is below the standing animation layer.
When I fade up the weight of the crouching layer, all is good. The character crouches, which is a combination of bone rotation and root bone movement downwards.
But when I fade down the crouch layer, the bones rotate back to standing position, but the location of the root bone does not change. It stays in the crouching Y position and so has the effect of moving the character down.
Repeating fading the weight up and down effectively causes the character to crawl downwards, as the location of the root bone drops to crouch, but does not rise to stand.
The idle animation does have keyframes set for the Y position of the root bone. Otherwise, the settings of the two animations are the same.
What am I missing?
Your answer
Follow this Question
Related Questions
Animation: Impact of combining the use of Layer, CrossFade, and Weight 2 Answers
Anima2D - Deform and stretched sprite mesh when rotating with bone 3 Answers
Character Animation change from type generic to humanoid 2 Answers
Model's wrist bending looks terrible in unity. 0 Answers
What am I not getting about animation weight blending? 4 Answers