Physics · interface

ClothBatches

Constraints reordered by colour, and where each colour's run starts.

Explained in Your first game, Rigid bodies.

interface ClothBatches
import type { ClothBatches } from '@driftengine/physics';

Properties

NameTypeDescription
orderreadonlyUint32ArrayConstraint indices, batch by batch.
batchesreadonlyUint32ArrayOffsets into order: batch b is order[batches[b]] up to order[batches[b + 1]].