Trait ncollide2d::pipeline::broad_phase::BroadPhasePairFilter
source · [−]pub trait BroadPhasePairFilter<N: RealField + Copy, Set: CollisionObjectSet<N>>: Send + Sync {
fn is_pair_valid(
&self,
h1: Set::CollisionObjectHandle,
h2: Set::CollisionObjectHandle,
s: &Set
) -> bool;
}
Expand description
A signal handler for contact detection.
Required methods
fn is_pair_valid(
&self,
h1: Set::CollisionObjectHandle,
h2: Set::CollisionObjectHandle,
s: &Set
) -> bool
fn is_pair_valid(
&self,
h1: Set::CollisionObjectHandle,
h2: Set::CollisionObjectHandle,
s: &Set
) -> bool
Activate an action for when two objects start or stop to be close to each other.