ncollide3d::pipeline::narrow_phase

Trait ProximityDispatcher

Source
pub trait ProximityDispatcher<N>:
    Any
    + Send
    + Sync {
    // Required method
    fn get_proximity_algorithm(
        &self,
        a: &dyn Shape<N>,
        b: &dyn Shape<N>,
    ) -> Option<ProximityAlgorithm<N>>;
}

Required Methods§

Source

fn get_proximity_algorithm( &self, a: &dyn Shape<N>, b: &dyn Shape<N>, ) -> Option<ProximityAlgorithm<N>>

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

Implementors§