Struct ncollide::narrow_phase::ShapeCompositeShapeProximityDetector
[−]
[src]
pub struct ShapeCompositeShapeProximityDetector<P, M> where
P: Point, { /* fields omitted */ }
Proximity detector between a shape and a concave shape.
Methods
impl<P, M> ShapeCompositeShapeProximityDetector<P, M> where
P: Point,
[src]
P: Point,
fn new() -> ShapeCompositeShapeProximityDetector<P, M>
Creates a new collision detector between a shape and a concave shape.
Trait Implementations
impl<P, M> ProximityDetector<P, M> for ShapeCompositeShapeProximityDetector<P, M> where
M: Isometry<P>,
P: Point,
[src]
M: Isometry<P>,
P: Point,
fn update(
&mut self,
disp: &ProximityDispatcher<P, M>,
m1: &M,
g1: &(Shape<P, M> + 'static),
m2: &M,
g2: &(Shape<P, M> + 'static),
margin: <P as EuclideanSpace>::Real
) -> bool
&mut self,
disp: &ProximityDispatcher<P, M>,
m1: &M,
g1: &(Shape<P, M> + 'static),
m2: &M,
g2: &(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.