Struct ncollide::narrow_phase::DefaultNarrowPhase
[−]
[src]
pub struct DefaultNarrowPhase<P, M> { /* fields omitted */ }
Collision detector dispatcher for collision objects.
Methods
impl<P, M> DefaultNarrowPhase<P, M> where
M: 'static,
P: Point,
[src]
M: 'static,
P: Point,
fn new(
contact_dispatcher: Box<ContactDispatcher<P, M> + 'static>,
proximity_dispatcher: Box<ProximityDispatcher<P, M> + 'static>
) -> DefaultNarrowPhase<P, M>
contact_dispatcher: Box<ContactDispatcher<P, M> + 'static>,
proximity_dispatcher: Box<ProximityDispatcher<P, M> + 'static>
) -> DefaultNarrowPhase<P, M>
Creates a new DefaultNarrowPhase
.
Trait Implementations
impl<P, M, T> NarrowPhase<P, M, T> for DefaultNarrowPhase<P, M> where
M: 'static,
P: Point,
[src]
M: 'static,
P: Point,
fn update(
&mut self,
objects: &UidRemap<CollisionObject<P, M, T>>,
contact_signal: &mut ContactSignal<P, M, T>,
proximity_signal: &mut ProximitySignal<P, M, T>,
timestamp: usize
)
&mut self,
objects: &UidRemap<CollisionObject<P, M, T>>,
contact_signal: &mut ContactSignal<P, M, T>,
proximity_signal: &mut ProximitySignal<P, M, T>,
timestamp: usize
)
Updates this narrow phase.
fn handle_interaction(
&mut self,
contact_signal: &mut ContactSignal<P, M, T>,
proximity_signal: &mut ProximitySignal<P, M, T>,
objects: &UidRemap<CollisionObject<P, M, T>>,
fk1: &FastKey,
fk2: &FastKey,
started: bool
)
&mut self,
contact_signal: &mut ContactSignal<P, M, T>,
proximity_signal: &mut ProximitySignal<P, M, T>,
objects: &UidRemap<CollisionObject<P, M, T>>,
fk1: &FastKey,
fk2: &FastKey,
started: bool
)
Called when the broad phase detects that two objects are, or stop to be, in close proximity.
fn contact_pairs(
&'a self,
objects: &'a UidRemap<CollisionObject<P, M, T>>
) -> ContactPairs<'a, P, M, T>
&'a self,
objects: &'a UidRemap<CollisionObject<P, M, T>>
) -> ContactPairs<'a, P, M, T>
Returns all the potential contact pairs found during the broad phase, and validated by the narrow phase. Read more
fn proximity_pairs(
&'a self,
objects: &'a UidRemap<CollisionObject<P, M, T>>
) -> ProximityPairs<'a, P, M, T>
&'a self,
objects: &'a UidRemap<CollisionObject<P, M, T>>
) -> ProximityPairs<'a, P, M, T>
Returns all the potential proximity pairs found during the broad phase, and validated by the narrow phase. Read more