Animation shaky

Hi,

I have a walk animation (Animation Movement Set Pro…) and script-defined root motion.
Since b20 it seems to be shaky. The same script, same animation, controller etc. in an empty scene looks good, preview looks good but in a level it looks shaky. If I deactivate everything in a level except of a plane as ground, it still is shaky…
Has anybody an idea where else I could look?

You provide far too little info to resolve this here.

One possible source of shaky anim is that animation is updated in Update(), while camera movement occurs in FixedUpdate() (e.g. because it is attached to a GO with a rigidbody etc.). Another source may be that its not the anim itself but what the character is attached to that ‘shakes’ the entire character. The anim system too can make characters jerk, e.g., when animations dont loop precisely or blending occurs between animations that werent meant to be blended. Final thing i can think of is that something is attached to the limbs that generates secondary motion, like a script, a rigidbody …

1 Like

I didn’t provide more since there wasn’t more (I deactivated every script, collider, rigidbody etc…), but you helped me anyway. I put the camera in LateUpdate instead of Update and everything looks normal now. Thank you, I searched several days and couldn’t find anything…

Btw: if I put it in LateUpdate and the animation in LateUpdate too, my own player object would work, but the one with NavMeshAgent and OnAnimatorMove() would be shaky :wink: