[][src]Trait oxygengine_physics_2d::prelude::ncollide2d::pipeline::ContactDispatcher

pub trait ContactDispatcher<N>: Send + Sync + Any {
    fn get_contact_algorithm(
        &self,
        a: &(dyn Shape<N> + 'static),
        b: &(dyn Shape<N> + 'static)
    ) -> Option<Box<dyn ContactManifoldGenerator<N> + 'static>>; }

Required methods

fn get_contact_algorithm(
    &self,
    a: &(dyn Shape<N> + 'static),
    b: &(dyn Shape<N> + 'static)
) -> Option<Box<dyn ContactManifoldGenerator<N> + 'static>>

Allocate a collision algorithm corresponding to a pair of objects with the given shapes.

Loading content...

Implementors

impl<N> ContactDispatcher<N> for DefaultContactDispatcher where
    N: RealField
[src]

Loading content...