O'Reilly logo

Unity Animation Essentials by Alan Thorn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Fixing motion offsets

A common problem when importing root motion animations into Unity is related to offsetting. To see this problem, play the walking animation scene you've just created, or load it from this book's companion files in the Chapter05/char_anim_walk_start folder. When you play this project and observe the character walking with root motion enabled, you'll see that not only does he walk forward in the scene, but he gradually wanders or moves off course. This is because he's not walking in a completely straight line. There's a degree of wander, or offset, that causes his path to deviate slowly over time. This isn't especially noticeable at first, but across larger spans of time, it's possible for a character to wander dramatically ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required