Function that returns:
SolverFlags.COMPUTE_IMPULSE (1) - Process the collision normally (compute impulses and resolve penetration)SolverFlags.EMPTY (0) - Skip computing impulses for this collision pair (colliders pass through each other)null - Skip this hook; let the next registered hook decide, or use Rapier's default behavior if no hook handles itWhen multiple hooks are registered, they are called in order until one returns a non-null value. That value is then passed to Rapier's physics engine.
Generated using TypeDoc
Registers a callback to filter contact pairs.
The callback determines if contact computation should happen between two colliders, and how the constraints solver should behave for these contacts.
This will only be executed if at least one of the involved colliders contains the
ActiveHooks.FILTER_CONTACT_PAIRflag in its active hooks.Example