Physics · interface

BendingConstraints

Dihedral bending: four particles — the shared edge, then each triangle's far corner.

Explained in Your first game, Rigid bodies.

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

Properties

NameTypeDescription
quadsreadonlyUint32Array
restreadonlyFloat32ArrayThe angle between the two triangles' normals at rest, in radians: π is flat.
compliancereadonlyFloat32Array
batchesreadonlyoptionalUint32Array