[][src]Trait rapier2d::geometry::ProximityDispatcher

pub trait ProximityDispatcher {
    fn dispatch_primitives(
        &self,
        shape1: ShapeType,
        shape2: ShapeType
    ) -> (PrimitiveProximityDetector, Option<Box<dyn Any + Send + Sync>>);
fn dispatch(
        &self,
        shape1: ShapeType,
        shape2: ShapeType
    ) -> (ProximityPhase, Option<Box<dyn Any + Send + Sync>>); }

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>>)

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>>)

Select the proximity detection algorithm for the given pair of non-primitive shapes.

Loading content...

Implementors

impl ProximityDispatcher for DefaultProximityDispatcher[src]

Loading content...