Box2DPhysicsSystem.DispatchSleepWakeEvents() Method
Definition¶
Namespace: Brine2D.Systems.Physics
Polls awake state for all bodies that were sleeping after the previous step. Box2D only fires body move events for bodies that actually moved, so OnBodyWake would be delayed by one tick if we relied solely on move events to detect waking. Polling here ensures the event fires the same tick the body transitions to awake.
private void DispatchSleepWakeEvents();