Skip to main content

Module root_motion

Module root_motion 

Source
Expand description

Root-motion track: the character-displacement curve stripped out of a clip’s root joint at build time. The pose keeps the root anchored in place; the runtime samples this track’s frame-to-frame delta instead and feeds it to whatever moves the character (a physics capsule, or the mesh transform directly). Pure math, unit-tested here.

Structs§

RootKey
One key of a root-motion curve: the root joint’s stripped translation at time seconds from the clip start.
RootTrack
The displacement curve of one clip, in the mesh’s model space. Keys are in ascending time order (the build bakes them from the root joint’s keyframe track, so they inherit its ordering).