Struct ncollide2d::narrow_phase::DefaultNarrowPhase [−][src]
pub struct DefaultNarrowPhase<N> { /* fields omitted */ }
Collision detector dispatcher for collision objects.
Methods
impl<N: 'static> DefaultNarrowPhase<N>
[src]
impl<N: 'static> DefaultNarrowPhase<N>
pub fn new(
contact_dispatcher: Box<ContactDispatcher<N>>,
proximity_dispatcher: Box<ProximityDispatcher<N>>
) -> DefaultNarrowPhase<N>
[src]
pub fn new(
contact_dispatcher: Box<ContactDispatcher<N>>,
proximity_dispatcher: Box<ProximityDispatcher<N>>
) -> DefaultNarrowPhase<N>
Creates a new DefaultNarrowPhase
.
Trait Implementations
impl<N: Real, T> NarrowPhase<N, T> for DefaultNarrowPhase<N>
[src]
impl<N: Real, T> NarrowPhase<N, T> for DefaultNarrowPhase<N>
fn update(
&mut self,
objects: &CollisionObjectSlab<N, T>,
contact_events: &mut ContactEvents,
proximity_events: &mut ProximityEvents,
timestamp: usize
)
[src]
fn update(
&mut self,
objects: &CollisionObjectSlab<N, T>,
contact_events: &mut ContactEvents,
proximity_events: &mut ProximityEvents,
timestamp: usize
)
Updates this narrow phase.
fn handle_interaction(
&mut self,
contact_events: &mut ContactEvents,
proximity_events: &mut ProximityEvents,
objects: &CollisionObjectSlab<N, T>,
handle1: CollisionObjectHandle,
handle2: CollisionObjectHandle,
started: bool
)
[src]
fn handle_interaction(
&mut self,
contact_events: &mut ContactEvents,
proximity_events: &mut ProximityEvents,
objects: &CollisionObjectSlab<N, T>,
handle1: CollisionObjectHandle,
handle2: CollisionObjectHandle,
started: bool
)
Called when the broad phase detects that two objects are, or stop to be, in close proximity.
fn handle_removal(
&mut self,
_: &CollisionObjectSlab<N, T>,
handle1: CollisionObjectHandle,
handle2: CollisionObjectHandle
)
[src]
fn handle_removal(
&mut self,
_: &CollisionObjectSlab<N, T>,
handle1: CollisionObjectHandle,
handle2: CollisionObjectHandle
)
Called when the interactions between two objects have to be removed because at least one of the objects is being removed. Read more
fn contact_pair(
&self,
handle1: CollisionObjectHandle,
handle2: CollisionObjectHandle
) -> Option<&ContactAlgorithm<N>>
[src]
fn contact_pair(
&self,
handle1: CollisionObjectHandle,
handle2: CollisionObjectHandle
) -> Option<&ContactAlgorithm<N>>
Retrieve the contact pair for the given two objects. Read more
ⓘImportant traits for ContactPairs<'a, N, T>fn contact_pairs<'a>(
&'a self,
objects: &'a CollisionObjectSlab<N, T>
) -> ContactPairs<'a, N, T>
[src]
ⓘImportant traits for ContactPairs<'a, N, T>
fn contact_pairs<'a>(
&'a self,
objects: &'a CollisionObjectSlab<N, T>
) -> ContactPairs<'a, N, T>
Returns all the potential contact pairs found during the broad phase, and validated by the narrow phase. Read more
ⓘImportant traits for ProximityPairs<'a, N, T>fn proximity_pairs<'a>(
&'a self,
objects: &'a CollisionObjectSlab<N, T>
) -> ProximityPairs<'a, N, T>
[src]
ⓘImportant traits for ProximityPairs<'a, N, T>
fn proximity_pairs<'a>(
&'a self,
objects: &'a CollisionObjectSlab<N, T>
) -> ProximityPairs<'a, N, T>
Returns all the potential proximity pairs found during the broad phase, and validated by the narrow phase. Read more
Auto Trait Implementations
impl<N> Send for DefaultNarrowPhase<N>
impl<N> Send for DefaultNarrowPhase<N>
impl<N> Sync for DefaultNarrowPhase<N>
impl<N> Sync for DefaultNarrowPhase<N>