pub trait ContactDispatcher<N>:
Any
+ Send
+ Sync {
// Required method
fn get_contact_algorithm(
&self,
a: &dyn Shape<N>,
b: &dyn Shape<N>,
) -> Option<ContactAlgorithm<N>>;
}
Required Methods§
Sourcefn get_contact_algorithm(
&self,
a: &dyn Shape<N>,
b: &dyn Shape<N>,
) -> Option<ContactAlgorithm<N>>
fn get_contact_algorithm( &self, a: &dyn Shape<N>, b: &dyn Shape<N>, ) -> Option<ContactAlgorithm<N>>
Allocate a collision algorithm corresponding to a pair of objects with the given shapes.