[−][src]Trait rapier3d::geometry::ProximityPairFilter
User-defined filter for potential proximity pairs detected by the broad-phase.
This can be used to apply custom logic in order to decide whether two colliders should have their proximity computed by the narrow-phase.
Required methods
pub fn filter_proximity_pair(&self, context: &PairFilterContext<'_>) -> bool
[src]
Applies the proximity pair filter.
Note that using a proximity pair filter will replace the default proximity filtering which consists of preventing proximity computation between two non-dynamic bodies.
This filtering method is called after taking into account the colliders collision groups.
If this returns false
, then the narrow-phase will ignore this pair and
not compute any proximity information for it.
If this return true
then the narrow-phase will compute proximity
information for this pair.