Overview - Root motion
What is it?
Root motion is a technique in Unity where the movement of a character is driven by the animation itself rather than by code. Instead of manually moving the character in the game world, the character's position and rotation come from the animation data. This helps create more natural and realistic movements that match the animation perfectly.
Why it matters
Without root motion, characters can slide or move unnaturally because their movement is controlled separately from their animations. Root motion solves this by syncing movement and animation, making characters feel more alive and believable. It also simplifies coding because you don't have to write extra logic to move characters during complex animations like jumps or attacks.
Where it fits
Before learning root motion, you should understand basic Unity animations and how to move objects with scripts. After mastering root motion, you can explore advanced animation blending, inverse kinematics, and character controllers that combine physics and animation.