Struct ncollide::narrow_phase::DefaultContactDispatcher
[−]
[src]
pub struct DefaultContactDispatcher<P, M> where
P: Point, { /* fields omitted */ }
Collision dispatcher for shapes defined by ncollide_entities
.
Methods
impl<P, M> DefaultContactDispatcher<P, M> where
P: Point,
[src]
P: Point,
fn new() -> DefaultContactDispatcher<P, M>
Creates a new basic collision dispatcher.
Trait Implementations
impl<P, M> ContactDispatcher<P, M> for DefaultContactDispatcher<P, M> where
M: Isometry<P>,
P: Point,
[src]
M: Isometry<P>,
P: Point,
fn get_contact_algorithm(
&self,
a: &(Shape<P, M> + 'static),
b: &(Shape<P, M> + 'static)
) -> Option<Box<ContactGenerator<P, M> + 'static>>
&self,
a: &(Shape<P, M> + 'static),
b: &(Shape<P, M> + 'static)
) -> Option<Box<ContactGenerator<P, M> + 'static>>
Allocate a collision algorithm corresponding to the given pair of shapes.