packInstance()
Pack one instance into words at o (INSTWORDS words). A posed instance names its pose, packed with packPose: its offset in the pose store and the posed box that call returned. Returns the instance's world box, which decides the top cells that list it.
function packInstance(
inst: PackInstance,
model: PackModel,
modelId: number,
words: Uint32Array,
o: number,
pose?: object
): object;Defined in: instance.ts:313
Parameters
| Parameter | Type |
|---|---|
inst | PackInstance |
model | PackModel |
modelId | number |
words | Uint32Array |
o | number |
pose? | { box: ArrayLike<number>; off: number; } |
pose.box | ArrayLike<number> |
pose.off | number |
Returns
object
box
box: number[];