Constructors

Properties

allLayersMask: 255 = 0xff
bodyInterface: BodyInterface
contactListener: ContactListenerJS

Contact listener to keep track of current collisions

dynamicBroadPhaseLayerIndex: 1 = 1
dynamicLayersMask: 240 = 0xf0
gravityX: number
gravityY: number
gravityZ: number
jolt: JoltInterface
physicsSystem: PhysicsSystem
staticBroadPhaseLayerIndex: 1 = 1
staticLayersMask: 15 = 0x0f
stepped: boolean = false
worldInvScale: number
worldScale: number

Methods

  • A hook must typically be registered by a behavior that requires this one in its onCreate function. The hook must stay forever to avoid side effects like a hooks order change. To handle deactivated behavior, the hook can check that its behavior is activated before doing anything.

    Parameters

    Returns void