pub unsafe extern "C" fn PxSimulationEventCallback_onWake_mut(
    self_: *mut PxSimulationEventCallback,
    actors: *mut *mut PxActor,
    count: u32
)
Expand description

This is called with the actors which have just been woken up.

Only supported by rigid bodies yet.

Only called on actors for which the PxActorFlag eSEND_SLEEP_NOTIFIES has been set.

Only the latest sleep state transition happening between fetchResults() of the previous frame and fetchResults() of the current frame will get reported. For example, let us assume actor A is awake, then A->putToSleep() gets called, then later A->wakeUp() gets called. At the next simulate/fetchResults() step only an onWake() event will get triggered because that was the last transition.

If an actor gets newly added to a scene with properties such that it is awake and the sleep state does not get changed by the user or simulation, then an onWake() event will get sent at the next simulate/fetchResults() step.