Trait ncollide2d::broad_phase::BroadPhasePairFilter
source · pub trait BroadPhasePairFilter<N: Real, T>: Any + Send + Sync {
fn is_pair_valid(
&self,
b1: &CollisionObject<N, T>,
b2: &CollisionObject<N, T>
) -> bool;
}
Expand description
A signal handler for contact detection.
Required Methods§
sourcefn is_pair_valid(
&self,
b1: &CollisionObject<N, T>,
b2: &CollisionObject<N, T>
) -> bool
fn is_pair_valid(
&self,
b1: &CollisionObject<N, T>,
b2: &CollisionObject<N, T>
) -> bool
Activate an action for when two objects start or stop to be close to each other.