Struct ncollide::narrow_phase::SupportMapPlaneContactGenerator
[−]
[src]
pub struct SupportMapPlaneContactGenerator<P, M> where
P: Point, { /* fields omitted */ }
Collision detector between a plane and a shape implementing the SupportMap
trait.
This detector generates only one contact point. For a full manifold generation, see
IncrementalContactManifoldGenerator
.
Methods
impl<P, M> SupportMapPlaneContactGenerator<P, M> where
P: Point,
[src]
P: Point,
fn new() -> SupportMapPlaneContactGenerator<P, M>
[src]
Creates a new persistent collision detector between a plane and a shape with a support mapping function.
Trait Implementations
impl<P, M> Clone for SupportMapPlaneContactGenerator<P, M> where
M: Clone,
P: Clone + Point,
[src]
M: Clone,
P: Clone + Point,
fn clone(&self) -> SupportMapPlaneContactGenerator<P, M>
[src]
impl<P, M> ContactGenerator<P, M> for SupportMapPlaneContactGenerator<P, M> where
M: Isometry<P>,
P: Point,
[src]
M: Isometry<P>,
P: Point,
fn update(
&mut self,
&(ContactDispatcher<P, M> + 'static),
ma: &M,
a: &(Shape<P, M> + 'static),
mb: &M,
plane: &(Shape<P, M> + 'static),
prediction: &ContactPrediction<<P as EuclideanSpace>::Real>
) -> bool
[src]
&mut self,
&(ContactDispatcher<P, M> + 'static),
ma: &M,
a: &(Shape<P, M> + 'static),
mb: &M,
plane: &(Shape<P, M> + 'static),
prediction: &ContactPrediction<<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
[src]
The number of contacts generated the last update.
fn contacts(&self, out_contacts: &mut Vec<Contact<P>>)
[src]
Collects the contacts generated during the last update.