Creatures in the Forge. What This Module Does
RigMotionPresets - plug-and-play motions for the standard rig templates. A preset is one motion: a name, when it plays, how long it takes, and a keyframed track for each part it moves. It lands in the model's Animations list as that one motion (its tracks are ordinary pose rules sharing the name, so they fire together), editable in the motion editor like anything authored by hand.
Classes & Namespaces
Design Notes from the Source Code
RigMotionPresets - plug-and-play motions for the standard rig templates. A preset is one motion: a name, when it plays, how long it takes, and a keyframed track for each part it moves. It lands in the model's Animations list as that one motion (its tracks are ordinary pose rules sharing the name, so they fire together), editable in the motion editor like anything authored by hand.
Rotations are in the model's own axes, the templates' canonical facing: the character looks toward +Z, its right side is at -X, arms hang down. A limb swings forward on negative X and bends a knee or an elbow on positive X; an arm lifts out to the side on +Z (left) or -Z (right); the torso and head lean forward on positive X and turn left on positive Y.
The movement states (walking, dashing, idle, jumping, swimming,
treading, climbing, riding) have a preset each, and a rigged model plays those on its own
for any state it has no motion of its own for (DEFAULTS,
defaultRules), so a character climbs, swims and jumps plausibly
before anyone animates it. The same file is the runtime's
reactor_rig_motions.js, byte for byte.
View reactor_rig_motions.js on GitHub · Hide internal (_) functions