[][src]Trait rapier3d::geometry::ProximityDispatcher

pub trait ProximityDispatcher {
    fn dispatch_primitives(
        &self,
        shape1: &Shape,
        shape2: &Shape
    ) -> (PrimitiveProximityDetector, Option<Box<dyn Any + Send + Sync>>);
fn dispatch(
        &self,
        shape1: &Shape,
        shape2: &Shape
    ) -> (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: &Shape,
    shape2: &Shape
) -> (PrimitiveProximityDetector, Option<Box<dyn Any + Send + Sync>>)

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

fn dispatch(
    &self,
    shape1: &Shape,
    shape2: &Shape
) -> (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...