[−][src]Trait oxygengine_physics_2d::prelude::ncollide2d::pipeline::narrow_phase::ProximityDetector
Trait implemented by algorithms that determine if two objects are in close proximity.
Required methods
fn update(
&mut self,
dispatcher: &(dyn ProximityDispatcher<N> + 'static),
ma: &Isometry<N, U2, Unit<Complex<N>>>,
a: &(dyn Shape<N> + 'static),
mb: &Isometry<N, U2, Unit<Complex<N>>>,
b: &(dyn Shape<N> + 'static),
margin: N
) -> Option<Proximity>
&mut self,
dispatcher: &(dyn ProximityDispatcher<N> + 'static),
ma: &Isometry<N, U2, Unit<Complex<N>>>,
a: &(dyn Shape<N> + 'static),
mb: &Isometry<N, U2, Unit<Complex<N>>>,
b: &(dyn Shape<N> + 'static),
margin: N
) -> Option<Proximity>
Runs the proximity detection on two objects. It is assumed that the same proximity detector (the same instance) is always used with the same pair of object.
Implementors
impl<N> ProximityDetector<N> for BallBallProximityDetector where
N: RealField,
[src]
N: RealField,
fn update(
&mut self,
&(dyn ProximityDispatcher<N> + 'static),
ma: &Isometry<N, U2, Unit<Complex<N>>>,
a: &(dyn Shape<N> + 'static),
mb: &Isometry<N, U2, Unit<Complex<N>>>,
b: &(dyn Shape<N> + 'static),
margin: N
) -> Option<Proximity>
[src]
&mut self,
&(dyn ProximityDispatcher<N> + 'static),
ma: &Isometry<N, U2, Unit<Complex<N>>>,
a: &(dyn Shape<N> + 'static),
mb: &Isometry<N, U2, Unit<Complex<N>>>,
b: &(dyn Shape<N> + 'static),
margin: N
) -> Option<Proximity>
impl<N> ProximityDetector<N> for CompositeShapeShapeProximityDetector<N> where
N: RealField,
[src]
N: RealField,
fn update(
&mut self,
dispatcher: &(dyn ProximityDispatcher<N> + 'static),
m1: &Isometry<N, U2, Unit<Complex<N>>>,
g1: &(dyn Shape<N> + 'static),
m2: &Isometry<N, U2, Unit<Complex<N>>>,
g2: &(dyn Shape<N> + 'static),
margin: N
) -> Option<Proximity>
[src]
&mut self,
dispatcher: &(dyn ProximityDispatcher<N> + 'static),
m1: &Isometry<N, U2, Unit<Complex<N>>>,
g1: &(dyn Shape<N> + 'static),
m2: &Isometry<N, U2, Unit<Complex<N>>>,
g2: &(dyn Shape<N> + 'static),
margin: N
) -> Option<Proximity>
impl<N> ProximityDetector<N> for PlaneSupportMapProximityDetector where
N: RealField,
[src]
N: RealField,
fn update(
&mut self,
&(dyn ProximityDispatcher<N> + 'static),
ma: &Isometry<N, U2, Unit<Complex<N>>>,
plane: &(dyn Shape<N> + 'static),
mb: &Isometry<N, U2, Unit<Complex<N>>>,
b: &(dyn Shape<N> + 'static),
margin: N
) -> Option<Proximity>
[src]
&mut self,
&(dyn ProximityDispatcher<N> + 'static),
ma: &Isometry<N, U2, Unit<Complex<N>>>,
plane: &(dyn Shape<N> + 'static),
mb: &Isometry<N, U2, Unit<Complex<N>>>,
b: &(dyn Shape<N> + 'static),
margin: N
) -> Option<Proximity>
impl<N> ProximityDetector<N> for SupportMapPlaneProximityDetector where
N: RealField,
[src]
N: RealField,
fn update(
&mut self,
disp: &(dyn ProximityDispatcher<N> + 'static),
ma: &Isometry<N, U2, Unit<Complex<N>>>,
a: &(dyn Shape<N> + 'static),
mb: &Isometry<N, U2, Unit<Complex<N>>>,
b: &(dyn Shape<N> + 'static),
margin: N
) -> Option<Proximity>
[src]
&mut self,
disp: &(dyn ProximityDispatcher<N> + 'static),
ma: &Isometry<N, U2, Unit<Complex<N>>>,
a: &(dyn Shape<N> + 'static),
mb: &Isometry<N, U2, Unit<Complex<N>>>,
b: &(dyn Shape<N> + 'static),
margin: N
) -> Option<Proximity>
impl<N> ProximityDetector<N> for SupportMapSupportMapProximityDetector<N> where
N: RealField,
[src]
N: RealField,