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

pub trait ContactDispatcher {
    pub fn dispatch_primitives(
        &self,
        shape1: ShapeType,
        shape2: ShapeType
    ) -> (PrimitiveContactGenerator, Option<ContactGeneratorWorkspace>);
pub fn dispatch(
        &self,
        shape1: ShapeType,
        shape2: ShapeType
    ) -> (ContactPhase, Option<ContactGeneratorWorkspace>); }

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
) -> (PrimitiveContactGenerator, Option<ContactGeneratorWorkspace>)

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

pub fn dispatch(
    &self,
    shape1: ShapeType,
    shape2: ShapeType
) -> (ContactPhase, Option<ContactGeneratorWorkspace>)

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

Loading content...

Implementors

impl ContactDispatcher for DefaultContactDispatcher

Loading content...