mulAffine()
out = a b for 3x4 affines (apply b, then a). out may not alias.
function mulAffine(
a: ArrayLike<number>,
ai: number,
b: ArrayLike<number>,
bi: number,
out: Float32Array,
o: number
): void;Defined in: engine/src/animation/math.ts:59
Parameters
| Parameter | Type |
|---|---|
a | ArrayLike<number> |
ai | number |
b | ArrayLike<number> |
bi | number |
out | Float32Array |
o | number |
Returns
void
makePoseCache()
Make a cache for baked poses (or anything else keyed by string). When the estimated size goes over maxBytes (default 48 MiB) the least recently used entries are evicted. makeCrowd makes one itself; make your own to share poses between crowds or to cache poses you bake by hand.
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.