[][src]Trait rapier2d::geometry::ContactDispatcher

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

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

fn dispatch(
    &self,
    shape1: &Shape,
    shape2: &Shape
) -> (ContactPhase, Option<Box<dyn Any + Send + Sync>>)

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

Loading content...

Implementors

impl ContactDispatcher for DefaultContactDispatcher[src]

Loading content...