Struct ncollide::broad_phase::BroadPhasePairFilters
[−]
[src]
pub struct BroadPhasePairFilters<P, M, T> where
P: Point, { /* fields omitted */ }
Filters deciding whether a proximity is to be further investigated by the narrow phase or not.
All filters have have to return true
in order to allow a proximity to be further handled.
Methods
impl<P, M, T> BroadPhasePairFilters<P, M, T> where
P: Point,
[src]
P: Point,
fn new() -> BroadPhasePairFilters<P, M, T>
Creates a new set of collision filters.
fn register_collision_filter(
&mut self,
name: &str,
callback: Box<BroadPhasePairFilter<P, M, T> + 'static>
)
&mut self,
name: &str,
callback: Box<BroadPhasePairFilter<P, M, T> + 'static>
)
Registers a collision filter.
fn unregister_collision_filter(&mut self, name: &str) -> bool
Unregisters a collision filter.
Returns true
if the filter was found.
fn is_pair_valid(
&self,
b1: &CollisionObject<P, M, T>,
b2: &CollisionObject<P, M, T>
) -> bool
&self,
b1: &CollisionObject<P, M, T>,
b2: &CollisionObject<P, M, T>
) -> bool
Tells if the collision between b1
and b2
is to be handled by the narrow-phase.