pub unsafe extern "C" fn PxSimulationEventCallback_onAdvance_mut(
    self_: *mut PxSimulationEventCallback,
    bodyBuffer: *const *const PxRigidBody,
    poseBuffer: *const PxTransform,
    count: u32
)
Expand description

Provides early access to the new pose of moving rigid bodies.

When this call occurs, rigid bodies having the [PxRigidBodyFlag::eENABLE_POSE_INTEGRATION_PREVIEW] flag set, were moved by the simulation and their new poses can be accessed through the provided buffers.

The provided buffers are valid and can be read until the next call to PxScene::simulate or #PxScene::collide().

This callback gets triggered while the simulation is running. If the provided rigid body references are used to read properties of the object, then the callback has to guarantee no other thread is writing to the same body at the same time.

The code in this callback should be lightweight as it can block the simulation, that is, the PxScene::fetchResults call.