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§
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.