Type Aliases
AABBOptions
AABBOptions
: { lowerBound
?: Vec2; upperBound
?: Vec2 }Type declaration
Optional lowerBound?: Vec2
Optional upperBound?: Vec2
AddBodyEvent
Add
Body
Event
: { body
: Body; type
: "addBody" }AddSpringEvent
Add
Spring
Event
: { spring
: Spring; type
: "addSpring" }BeginContactEvent
BodyEventMap
ConstraintOptions
ConstraintOptions: { collideConnected?: boolean; wakeUpBodies?: boolean }
Type declaration
Optional collideConnected?: boolean
Optional wakeUpBodies?: boolean
EndContactEvent
End
Contact
Event
: { bodyA
: Body; bodyB
: Body; shapeA
: Shape; shapeB
: Shape; type
: "endContact" }ImpactEvent
PostBroadphaseEvent
Post
Broadphase
Event
: { pairs
: Body[]; type
: "postBroadphase" }Type declaration
pairs: Body[]
type: "postBroadphase"
PostStepEvent
PostStepEvent: { type: "postStep" }
PreSolveEvent
RayOptions
Ray
Options
: { checkCollisionResponse
?: boolean; collisionGroup
?: number; collisionMask
?: number; from
?: Vec2; mode
?: typeof CLOSEST | typeof ANY | typeof ALL; skipBackfaces
?: boolean; to
?: Vec2; callback
?: any }Type declaration
Optional checkCollisionResponse?: boolean
Optional collisionGroup?: number
Optional collisionMask?: number
Optional from?: Vec2
Optional mode?: typeof CLOSEST | typeof ANY | typeof ALL
Optional skipBackfaces?: boolean
Optional to?: Vec2
callback?:function
Parameters
Returns void
RemoveBodyEvent
Remove
Body
Event
: { body
: Body; type
: "removeBody" }RemoveSpringEvent
Remove
Spring
Event
: { spring
: Spring; type
: "removeSpring" }SleepEvent
SleepEvent: { type: "sleep" }
SleepyEvent
SleepyEvent: { type: "sleepy" }
Vec2
Vec2: number[] | [number, number] | Float32Array
WakeUpEvent
WakeUpEvent: { type: "wakeup" }
WorldEventMap
The lower bound of the bounding box.