Function onPhysicsTriggerBodies
-
onPhysicsTriggerBodies(
world: PhysicsWorld,
cb: (info: PhysicsTriggerBodyInfo) => void,
): () => voidParameters
- world: PhysicsWorld
The physics world to listen on.
- cb: (info: PhysicsTriggerBodyInfo) => void
Callback invoked with each body-aware trigger event.
Returns () => void
A disposer that removes the callback.
- world: PhysicsWorld
Register a trigger callback that also resolves both participating Havok bodies.
A body is
nullwhen the native event references a body that has already been removed from the world's tracked body list.