Struct ncollide::narrow_phase::SupportMapSupportMapProximityDetector
[−]
[src]
pub struct SupportMapSupportMapProximityDetector<P, M, S> where
P: Point, { /* fields omitted */ }
Persistent proximity detector between two shapes having a support mapping function.
It is based on the GJK algorithm.
Methods
impl<P, M, S> SupportMapSupportMapProximityDetector<P, M, S> where
P: Point,
S: Simplex<AnnotatedPoint<P>>,
[src]
P: Point,
S: Simplex<AnnotatedPoint<P>>,
fn new(simplex: S) -> SupportMapSupportMapProximityDetector<P, M, S>
Creates a new persistant proximity detector between two shapes with support mapping functions.
It is initialized with a pre-created simplex.
Trait Implementations
impl<P, M, S> ProximityDetector<P, M> for SupportMapSupportMapProximityDetector<P, M, S> where
M: Isometry<P>,
P: Point,
S: Simplex<AnnotatedPoint<P>>,
[src]
M: Isometry<P>,
P: Point,
S: Simplex<AnnotatedPoint<P>>,
fn update(
&mut self,
&ProximityDispatcher<P, M>,
ma: &M,
a: &(Shape<P, M> + 'static),
mb: &M,
b: &(Shape<P, M> + 'static),
margin: <P as EuclideanSpace>::Real
) -> bool
&mut self,
&ProximityDispatcher<P, M>,
ma: &M,
a: &(Shape<P, M> + 'static),
mb: &M,
b: &(Shape<P, M> + 'static),
margin: <P as EuclideanSpace>::Real
) -> bool
Runs the proximity detection on two objects. It is assumed that the same proximity detector (the same structure) is always used with the same pair of object. Read more
fn proximity(&self) -> Proximity
The number of collision detected during the last update.
impl<P, M, S> Clone for SupportMapSupportMapProximityDetector<P, M, S> where
M: Clone,
P: Clone + Point,
S: Clone,
<P as Point>::Vector: Clone,
[src]
M: Clone,
P: Clone + Point,
S: Clone,
<P as Point>::Vector: Clone,