Quantcast
Channel: Questions in topic: "weight"
Viewing all articles
Browse latest Browse all 136

Animation Controller not returning character to correct position.

$
0
0
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?

Viewing all articles
Browse latest Browse all 136

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>