voxolith

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

ParameterType
instPackInstance
modelPackModel
modelIdnumber
wordsUint32Array
onumber
pose?{ box: ArrayLike<number>; off: number; }
pose.boxArrayLike<number>
pose.offnumber

Returns

object

box

box: number[];

On this page