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

Required Methods§

source

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

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

Implementors§