[−][src]Trait 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>,
ma: &Isometry<N>,
a: &dyn Shape<N>,
mb: &Isometry<N>,
b: &dyn Shape<N>,
margin: N
) -> Option<Proximity>
&mut self,
dispatcher: &dyn ProximityDispatcher<N>,
ma: &Isometry<N>,
a: &dyn Shape<N>,
mb: &Isometry<N>,
b: &dyn Shape<N>,
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: RealField> ProximityDetector<N> for BallBallProximityDetector
[src]
fn update(
&mut self,
_: &dyn ProximityDispatcher<N>,
ma: &Isometry<N>,
a: &dyn Shape<N>,
mb: &Isometry<N>,
b: &dyn Shape<N>,
margin: N
) -> Option<Proximity>
[src]
&mut self,
_: &dyn ProximityDispatcher<N>,
ma: &Isometry<N>,
a: &dyn Shape<N>,
mb: &Isometry<N>,
b: &dyn Shape<N>,
margin: N
) -> Option<Proximity>
impl<N: RealField> ProximityDetector<N> for CompositeShapeShapeProximityDetector<N>
[src]
fn update(
&mut self,
dispatcher: &dyn ProximityDispatcher<N>,
m1: &Isometry<N>,
g1: &dyn Shape<N>,
m2: &Isometry<N>,
g2: &dyn Shape<N>,
margin: N
) -> Option<Proximity>
[src]
&mut self,
dispatcher: &dyn ProximityDispatcher<N>,
m1: &Isometry<N>,
g1: &dyn Shape<N>,
m2: &Isometry<N>,
g2: &dyn Shape<N>,
margin: N
) -> Option<Proximity>
impl<N: RealField> ProximityDetector<N> for PlaneSupportMapProximityDetector
[src]
fn update(
&mut self,
_: &dyn ProximityDispatcher<N>,
ma: &Isometry<N>,
plane: &dyn Shape<N>,
mb: &Isometry<N>,
b: &dyn Shape<N>,
margin: N
) -> Option<Proximity>
[src]
&mut self,
_: &dyn ProximityDispatcher<N>,
ma: &Isometry<N>,
plane: &dyn Shape<N>,
mb: &Isometry<N>,
b: &dyn Shape<N>,
margin: N
) -> Option<Proximity>
impl<N: RealField> ProximityDetector<N> for SupportMapPlaneProximityDetector
[src]
fn update(
&mut self,
disp: &dyn ProximityDispatcher<N>,
ma: &Isometry<N>,
a: &dyn Shape<N>,
mb: &Isometry<N>,
b: &dyn Shape<N>,
margin: N
) -> Option<Proximity>
[src]
&mut self,
disp: &dyn ProximityDispatcher<N>,
ma: &Isometry<N>,
a: &dyn Shape<N>,
mb: &Isometry<N>,
b: &dyn Shape<N>,
margin: N
) -> Option<Proximity>