Appearance
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
| Parameter | Type | Default value |
|---|---|---|
rig | AnimRig | undefined |
from | number | undefined |
to | number | undefined |
backward? | boolean | false |
Returns
object
| Name | Type |
|---|---|
x | number |
y | number |