pub unsafe extern "C" fn PxSimulationEventCallback_onContact_mut(
self_: *mut PxSimulationEventCallback,
pairHeader: *const PxContactPairHeader,
pairs: *const PxContactPair,
nbPairs: u32
)
Expand description
This is called when certain contact events occur.
The method will be called for a pair of actors if one of the colliding shape pairs requested contact notification.
You request which events are reported using the filter shader/callback mechanism (see [PxSimulationFilterShader
],
PxSimulationFilterCallback
, #PxPairFlag).
Do not keep references to the passed objects, as they will be invalid after this function returns.