Struct ncollide::narrow_phase::CompositeShapeShapeContactGenerator
[−]
[src]
pub struct CompositeShapeShapeContactGenerator<P, M> where
P: Point, { /* fields omitted */ }
Collision detector between a concave shape and another shape.
Methods
impl<P, M> CompositeShapeShapeContactGenerator<P, M> where
P: Point,
[src]
P: Point,
fn new() -> CompositeShapeShapeContactGenerator<P, M>
Creates a new collision detector between a concave shape and another shape.
Trait Implementations
impl<P, M> ContactGenerator<P, M> for CompositeShapeShapeContactGenerator<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.