Struct ncollide2d::narrow_phase::DefaultContactDispatcher
source · pub struct DefaultContactDispatcher {}
Expand description
Collision dispatcher for shapes defined by ncollide_entities
.
Implementations§
source§impl DefaultContactDispatcher
impl DefaultContactDispatcher
sourcepub fn new() -> DefaultContactDispatcher
pub fn new() -> DefaultContactDispatcher
Creates a new basic collision dispatcher.
Trait Implementations§
source§impl<N: Real> ContactDispatcher<N> for DefaultContactDispatcher
impl<N: Real> ContactDispatcher<N> for DefaultContactDispatcher
source§fn get_contact_algorithm(
&self,
a: &dyn Shape<N>,
b: &dyn Shape<N>
) -> Option<ContactAlgorithm<N>>
fn get_contact_algorithm(
&self,
a: &dyn Shape<N>,
b: &dyn Shape<N>
) -> Option<ContactAlgorithm<N>>
Allocate a collision algorithm corresponding to the given pair of shapes.
Auto Trait Implementations§
impl RefUnwindSafe for DefaultContactDispatcher
impl Send for DefaultContactDispatcher
impl Sync for DefaultContactDispatcher
impl Unpin for DefaultContactDispatcher
impl UnwindSafe for DefaultContactDispatcher
Blanket Implementations§
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.