poseMatrices()
Forward kinematics: one 3x4 per bone (12 floats each) mapping rest model space to posed model space. Each bone rotates about its own head, inside its parent's posed frame. Bones must be ordered parents first.
function poseMatrices(
rig: Rig,
pose: Pose,
out?: Float32Array<ArrayBuffer>
): Float32Array;Defined in: engine/src/animation/pose.ts:87
Parameters
Returns
Float32Array
mulAffine()
out = a b for 3x4 affines (apply b, then a). out may not alias.
prepareRigged()
Prepare a rigged rest model to be posed on the GPU (makeCrowd({ rigged: true }), or a renderer instance with parts) instead of baked per pose. The renderer samples each world cell back through every bone's inverse into this one model, as bakePose does per posed cell, so the model is uploaded...