Physics · interface
BendingConstraints
Dihedral bending: four particles — the shared edge, then each triangle's far corner.
Explained in Your first game, Rigid bodies.
interface BendingConstraintsimport type { BendingConstraints } from '@driftengine/physics';Properties
| Name | Type | Description |
|---|---|---|
quadsreadonly | Uint32Array | |
restreadonly | Float32Array | The angle between the two triangles' normals at rest, in radians: π is flat. |
compliancereadonly | Float32Array | |
batchesreadonlyoptional | Uint32Array |