Various events that can be retrieved during and after the simulation has completed. See PhysicsWorld.Simulate and PhysicsWorld.Simulate.
| Event | Description |
|---|---|
| PostSimulate | Event callback for a post-simulate event. This is called after the simulation has finished running and is always called on the main-thread. See PostSimulateEventHandler. |
| PreSimulate | Event callback for a pre-simulate event. This is called prior to the simulation running and is always called on the main-thread. See PreSimulateEventHandler. |
| WorldDrawResults | Event callback for a world draw results event. This is only called if the world is currently rendering as specified by PhysicsWorld.renderingMode or if PhysicsCoreSettings2D.alwaysDrawWorlds is true. CAUTION: The world is READ locked during this event so ANY write operation on the world will cause an immediate deadlock. See WorldDrawResultsEventHandler. |
| Delegate | Description |
|---|---|
| PostSimulateEventHandler | Event handler for a post-simulate event callback. This is called after the simulation has finished running and is always called on the main-thread. See PhysicsWorld and PhysicsEvents.PostSimulate. |
| PreSimulateEventHandler | Event handler for a pre-simulate event callback. This is called prior to the simulation running and is always called on the main-thread. See PhysicsWorld and PhysicsEvents.PreSimulate. |
| WorldDrawResultsEventHandler | Event handler for a world draw results event callback. This is only called if the world is currently rendering as specified by PhysicsWorld.renderingMode or if PhysicsCoreSettings2D.alwaysDrawWorlds is true. CAUTION: The world is READ locked during this event so ANY write operation on the world will cause an immediate deadlock. |