pub unsafe extern "C" fn PxPhysics_registerDeletionListener_mut(
    self_: *mut PxPhysics,
    observer: *mut PxDeletionListener,
    deletionEvents: *const PxDeletionEventFlags,
    restrictedObjectSet: bool
)
Expand description

Register a deletion listener. Listeners will be called whenever an object is deleted.

It is illegal to register or unregister a deletion listener while deletions are being processed.

By default a registered listener will receive events from all objects. Set the restrictedObjectSet parameter to true on registration and use [registerDeletionListenerObjects] to restrict the received events to specific objects.

The deletion events are only supported on core PhysX objects. In general, objects in extension modules do not provide this functionality, however, in the case of PxJoint objects, the underlying PxConstraint will send the events.