Struct ncollide::narrow_phase::PlaneSupportMapProximityDetector
[−]
[src]
pub struct PlaneSupportMapProximityDetector<P, M> where
P: Point, { /* fields omitted */ }
Proximity detector between a plane and a shape implementing the SupportMap
trait.
Methods
impl<P, M> PlaneSupportMapProximityDetector<P, M> where
P: Point,
[src]
P: Point,
fn new() -> PlaneSupportMapProximityDetector<P, M>
Creates a new persistent proximity detector between a plane and a shape with a support mapping function.
Trait Implementations
impl<P, M> ProximityDetector<P, M> for PlaneSupportMapProximityDetector<P, M> where
M: Isometry<P>,
P: Point,
[src]
M: Isometry<P>,
P: Point,
fn update(
&mut self,
&ProximityDispatcher<P, M>,
ma: &M,
plane: &(Shape<P, M> + 'static),
mb: &M,
b: &(Shape<P, M> + 'static),
margin: <P as EuclideanSpace>::Real
) -> bool
&mut self,
&ProximityDispatcher<P, M>,
ma: &M,
plane: &(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> Clone for PlaneSupportMapProximityDetector<P, M> where
M: Clone,
P: Clone + Point,
[src]
M: Clone,
P: Clone + Point,