Physics · function
batchesOf
A kind of constraint's batches: the set-up's own, checked, where it gives them, and coloured here where it does not. One decision for both solvers, which must batch a garment the same way.
Explained in Your first game, Rigid bodies.
function batchesOf(name: string, indices: Uint32Array, arity: number, inverseMass: Float32Array, given: Uint32Array | undefined): ClothBatchesimport { batchesOf } from '@driftengine/physics';Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | |
indices | Uint32Array | |
arity | number | |
inverseMass | Float32Array | |
given | Uint32Array | undefined |