[][src]Trait oxygengine_physics_2d::prelude::ncollide2d::pipeline::ProximityDispatcher

pub trait ProximityDispatcher<N>: Send + Sync + Any {
    fn get_proximity_algorithm(
        &self,
        a: &(dyn Shape<N> + 'static),
        b: &(dyn Shape<N> + 'static)
    ) -> Option<Box<dyn ProximityDetector<N> + 'static>>; }

Required methods

fn get_proximity_algorithm(
    &self,
    a: &(dyn Shape<N> + 'static),
    b: &(dyn Shape<N> + 'static)
) -> Option<Box<dyn ProximityDetector<N> + 'static>>

Allocate a collision algorithm corresponding to the given pair of shapes.

Loading content...

Implementors

impl<N> ProximityDispatcher<N> for DefaultProximityDispatcher where
    N: RealField
[src]

Loading content...