Interface BodyOptions

Hierarchy

  • BodyOptions

Properties

allowSleep?: boolean
angle?: number

See

angle

angularDamping?: number
angularForce?: number
angularVelocity?: number
ccdIterations?: number
ccdSpeedThreshold?: number
collisionResponse?: boolean
damping?: number

See

damping

fixedRotation?: boolean
fixedX?: boolean

See

fixedX

fixedY?: boolean

See

fixedY

force?: Vec2

See

force

gravityScale?: number
id?: number

See

id

mass?: number

See

mass

position?: Vec2
sleepSpeedLimit?: number
sleepTimeLimit?: number
type?: 2 | 1 | 4

See

type

velocity?: Vec2