Skip to content

anim-format (runtime format) / rigTravelStep

Function: rigTravelStep() ​

ts
function rigTravelStep(
   rig, 
   from, 
   to, 
   backward?
): object;

ROOT MOTION: how far the root moves when PLAYING moves the playhead one frame from from to to (whole frames of the symbol's timeline). A step forward from the rig's last frame back to its first (a loop) adds the cycle's travel: what the last frame moved by is taken to be the step across the loop too — author a cycle WITHOUT a repeated end pose (the Flash loop rule). Backwards = the same step negated. Not for jumps (goto): the caller hands those no travel.

Parameters ​

ParameterTypeDefault value
rigAnimRigundefined
fromnumberundefined
tonumberundefined
backward?booleanfalse

Returns ​

object

NameType
xnumber
ynumber

HereSplash — 2D animation for the web