[−][src]Trait rapier3d::geometry::ProximityDispatcher
Trait implemented by structures responsible for selecting a collision-detection algorithm for a given pair of shapes.
Required methods
fn dispatch_primitives(
&self,
shape1: ShapeType,
shape2: ShapeType
) -> (PrimitiveProximityDetector, Option<Box<dyn Any + Send + Sync>>)
&self,
shape1: ShapeType,
shape2: ShapeType
) -> (PrimitiveProximityDetector, Option<Box<dyn Any + Send + Sync>>)
Select the proximity detection algorithm for the given pair of primitive shapes.
fn dispatch(
&self,
shape1: ShapeType,
shape2: ShapeType
) -> (ProximityPhase, Option<Box<dyn Any + Send + Sync>>)
&self,
shape1: ShapeType,
shape2: ShapeType
) -> (ProximityPhase, Option<Box<dyn Any + Send + Sync>>)
Select the proximity detection algorithm for the given pair of non-primitive shapes.