Function onPhysicsTrigger
-
Parameters
- world: PhysicsWorld
The physics world to listen on.
- cb: (info: PhysicsTriggerInfo) => void
Callback invoked with each PhysicsTriggerInfo as it is read.
Returns () => void
A disposer that removes the callback.
- world: PhysicsWorld
Register a callback invoked once per trigger event after each physics step.
The events are produced by the Havok world step, so they are drained via the post-step hook (onPhysicsAfterStep). Flag the participating shape with setPhysicsShapeIsTrigger first, otherwise the stream is empty.