Physics · interface
ConvexPart
One convex piece of the decomposition, ready for hullShape.
Explained in Your first game, Rigid bodies.
interface ConvexPartimport type { ConvexPart } from '@driftengine/physics';Properties
| Name | Type | Description |
|---|---|---|
pointsreadonly | Float32Array | xyz-packed, at most SUPPORT_DIRECTIONS points, in the source mesh's own space. |
volumereadonly | number | The hull's volume, exactly, by the tetrahedral decomposition mass.ts already computes. |
fillreadonly | number | Cells this part was grown from, as a fraction of its own hull volume. |