How do I stop an animaton with root motion from moving my character in the y direction?

They are moving my character in the y direction. my setup is driven purely by root motion. Is there any way for me to fix these animations within Unity?

Its like a walkleft animation moving my character slightly down in the y direction each frame. And after sometime my characters feet end up underground.

Any help appreciated. Thanks.

I assume it is a rigidbody and if so have you tried to freeze position.y in the inspector? If you need the position.y for other animations such as jump you can simply unfreeze position.y during said animation. Is this character a rigidbody collider? What is your root transform position Y based upon? Feet?

1 Like