Struct ncollide::narrow_phase::ShapeCompositeShapeContactGenerator
[−]
[src]
pub struct ShapeCompositeShapeContactGenerator<P, M> where
P: Point, { /* fields omitted */ }
Collision detector between a shape and a concave shape.
Methods
impl<P, M> ShapeCompositeShapeContactGenerator<P, M> where
P: Point,
[src]
P: Point,
fn new() -> ShapeCompositeShapeContactGenerator<P, M>
Creates a new collision detector between a shape and a concave shape.
Trait Implementations
impl<P, M> ContactGenerator<P, M> for ShapeCompositeShapeContactGenerator<P, M> where
M: Isometry<P>,
P: Point,
[src]
M: Isometry<P>,
P: Point,
fn update(
&mut self,
d: &ContactDispatcher<P, M>,
ma: &M,
a: &(Shape<P, M> + 'static),
mb: &M,
b: &(Shape<P, M> + 'static),
prediction: <P as EuclideanSpace>::Real
) -> bool
&mut self,
d: &ContactDispatcher<P, M>,
ma: &M,
a: &(Shape<P, M> + 'static),
mb: &M,
b: &(Shape<P, M> + 'static),
prediction: <P as EuclideanSpace>::Real
) -> bool
Runs the collision detection on two objects. It is assumed that the same collision detector (the same structure) is always used with the same pair of object. Read more
fn num_contacts(&self) -> usize
The number of contacts generated the last update.
fn contacts(&self, out: &mut Vec<Contact<P>>)
Collects the contacts generated during the last update.