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 BodyPart
import type { BodyPart } from '@driftengine/physics';

Properties

NameTypeDescription
shapeConvexShape
oxnumber
oynumber
oznumber