aboutsummaryrefslogtreecommitdiff
path: root/src/geometry/user_callbacks.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/geometry/user_callbacks.rs')
-rw-r--r--src/geometry/user_callbacks.rs11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/geometry/user_callbacks.rs b/src/geometry/user_callbacks.rs
index 9b36695..ae0119f 100644
--- a/src/geometry/user_callbacks.rs
+++ b/src/geometry/user_callbacks.rs
@@ -4,13 +4,13 @@ use crate::geometry::{Collider, SolverFlags};
/// Context given to custom collision filters to filter-out collisions.
pub struct PairFilterContext<'a> {
/// The first collider involved in the potential collision.
- pub collider1: &'a Collider,
- /// The first collider involved in the potential collision.
- pub collider2: &'a Collider,
- /// The first collider involved in the potential collision.
pub rigid_body1: &'a RigidBody,
/// The first collider involved in the potential collision.
pub rigid_body2: &'a RigidBody,
+ /// The first collider involved in the potential collision.
+ pub collider1: &'a Collider,
+ /// The first collider involved in the potential collision.
+ pub collider2: &'a Collider,
}
/// User-defined filter for potential contact pairs detected by the broad-phase.
@@ -24,9 +24,6 @@ pub trait ContactPairFilter: Send + Sync {
/// Note that using a contact pair filter will replace the default contact filtering
/// which consists of preventing contact computation between two non-dynamic bodies.
///
- /// Note that using a contact pair filter will replace the default determination
- /// of solver flags, based on the colliders solver groups.
- ///
/// This filtering method is called after taking into account the colliders collision groups.
///
/// If this returns `None`, then the narrow-phase will ignore this contact pair and