Root motion
A clip may move the character itself: its root track is track "" prop="transform.position" kind=vec2 root=true. An Animator does not write that track; it moves the node by how much the track changes in each step, so a walk cycle advances the character instead of snapping back at every loop.
| Root Motion | What moves |
|---|---|
none |
nothing; the root track is ignored |
toMotion |
the node, through its Motion 2D: walls stop it, slopes and steps carry it, the velocity stays as it is |
toTransform |
the node's position; a kinematic body is moved by its velocity |
Root Scale multiplies the motion in the parent's space: set its X to -1 while the character faces left, since flipping the sprite does not turn the node. With toMotion and no Motion 2D on the node, Root Fallback moves the transform instead; without it the motion is dropped (ANM009). During a blend the motion of the two states is mixed by the blend weight. Root motion runs in game time only.