aboutsummaryrefslogtreecommitdiff
path: root/src/geometry/user_callbacks.rs
diff options
context:
space:
mode:
authorCrozet Sébastien <developer@crozet.re>2020-12-17 13:23:00 +0100
committerCrozet Sébastien <developer@crozet.re>2020-12-29 11:31:59 +0100
commit29717c2887b2db39faf9c25053730b661dc5da2b (patch)
treed7ec5abf85af4b3519ead56891dda23e02c08323 /src/geometry/user_callbacks.rs
parente231bacec608fa5efd24f7a876572927dbd6c9c4 (diff)
downloadrapier-29717c2887b2db39faf9c25053730b661dc5da2b.tar.gz
rapier-29717c2887b2db39faf9c25053730b661dc5da2b.tar.bz2
rapier-29717c2887b2db39faf9c25053730b661dc5da2b.zip
Externalize the proximity code (renamed intersection).
Diffstat (limited to 'src/geometry/user_callbacks.rs')
-rw-r--r--src/geometry/user_callbacks.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/geometry/user_callbacks.rs b/src/geometry/user_callbacks.rs
index ae0119f..629f707 100644
--- a/src/geometry/user_callbacks.rs
+++ b/src/geometry/user_callbacks.rs
@@ -37,21 +37,21 @@ pub trait ContactPairFilter: Send + Sync {
fn filter_contact_pair(&self, context: &PairFilterContext) -> Option<SolverFlags>;
}
-/// User-defined filter for potential proximity pairs detected by the broad-phase.
+/// User-defined filter for potential intersection 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.
+/// should have their intersection computed by the narrow-phase.
pub trait ProximityPairFilter: Send + Sync {
- /// Applies the proximity pair filter.
+ /// Applies the intersection 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.
+ /// Note that using an intersection pair filter will replace the default intersection filtering
+ /// which consists of preventing intersection 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
+ /// not compute any intersection information for it.
+ /// If this return `true` then the narrow-phase will compute intersection
/// information for this pair.
- fn filter_proximity_pair(&self, context: &PairFilterContext) -> bool;
+ fn filter_intersection_pair(&self, context: &PairFilterContext) -> bool;
}