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): ClothBatches
import { batchesOf } from '@driftengine/physics';

Parameters

ParameterTypeDescription
namestring
indicesUint32Array
aritynumber
inverseMassFloat32Array
givenUint32Array | undefined