Struct ncollide::narrow_phase::BallBallProximityDetector
[−]
[src]
pub struct BallBallProximityDetector<P, M> where
P: Point, { /* fields omitted */ }
Proximity detector between two balls.
Methods
impl<P, M> BallBallProximityDetector<P, M> where
P: Point,
[src]
P: Point,
fn new() -> BallBallProximityDetector<P, M>
Creates a new persistent collision detector between two balls.
Trait Implementations
impl<P, M> ProximityDetector<P, M> for BallBallProximityDetector<P, M> where
M: Isometry<P>,
P: Point,
[src]
M: Isometry<P>,
P: Point,
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> Clone for BallBallProximityDetector<P, M> where
P: Point,
[src]
P: Point,