Trait heron::rapier_plugin::rapier::geometry::ProximityDispatcher[]

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

Trait implemented by structures responsible for selecting a collision-detection algorithm for a given pair of shapes.

Required methods

pub fn dispatch_primitives(
    &self,
    shape1: ShapeType,
    shape2: ShapeType
) -> (PrimitiveProximityDetector, Option<Box<dyn Any + 'static + Send + Sync, Global>>)

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

pub fn dispatch(
    &self,
    shape1: ShapeType,
    shape2: ShapeType
) -> (ProximityPhase, Option<Box<dyn Any + 'static + Send + Sync, Global>>)

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

Loading content...

Implementors

impl ProximityDispatcher for DefaultProximityDispatcher

Loading content...