Trait ncollide2d::narrow_phase::ProximityDispatcher
source · pub trait ProximityDispatcher<N>: Any + Send + Sync {
fn get_proximity_algorithm(
&self,
a: &dyn Shape<N>,
b: &dyn Shape<N>
) -> Option<ProximityAlgorithm<N>>;
}
Required Methods§
sourcefn get_proximity_algorithm(
&self,
a: &dyn Shape<N>,
b: &dyn Shape<N>
) -> Option<ProximityAlgorithm<N>>
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.