Physics · interface
BodyPart
One piece of a compound body, offset from the body's centre in its own frame.
Explained in Your first game, Rigid bodies.
interface BodyPartimport type { BodyPart } from '@driftengine/physics';Properties
| Name | Type | Description |
|---|---|---|
shape | ConvexShape | |
ox | number | |
oy | number | |
oz | number |