Struct ncollide2d::narrow_phase::PlaneConvexPolyhedronManifoldGenerator
[−]
[src]
pub struct PlaneConvexPolyhedronManifoldGenerator<N: Real> { /* fields omitted */ }
Collision detector between g1 plane and g1 shape implementing the SupportMap
trait.
Methods
impl<N: Real> PlaneConvexPolyhedronManifoldGenerator<N>
[src]
pub fn new(flip: bool) -> PlaneConvexPolyhedronManifoldGenerator<N>
[src]
Creates g1 new persistent collision detector between g1 plane and g1 shape with g1 support mapping function.
Trait Implementations
impl<N: Clone + Real> Clone for PlaneConvexPolyhedronManifoldGenerator<N>
[src]
fn clone(&self) -> PlaneConvexPolyhedronManifoldGenerator<N>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<N: Real> ContactManifoldGenerator<N> for PlaneConvexPolyhedronManifoldGenerator<N>
[src]
fn update(
&mut self,
_: &ContactDispatcher<N>,
id1: usize,
m1: &Isometry<N>,
g1: &Shape<N>,
id2: usize,
m2: &Isometry<N>,
g2: &Shape<N>,
prediction: &ContactPrediction<N>,
id_alloc: &mut IdAllocator
) -> bool
[src]
&mut self,
_: &ContactDispatcher<N>,
id1: usize,
m1: &Isometry<N>,
g1: &Shape<N>,
id2: usize,
m2: &Isometry<N>,
g2: &Shape<N>,
prediction: &ContactPrediction<N>,
id_alloc: &mut IdAllocator
) -> 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 found.
fn contacts<'a: 'b, 'b>(&'a self, out: &'b mut Vec<&'a ContactManifold<N>>)
[src]
Collects the contact manifolds generated by the last update.
Auto Trait Implementations
impl<N> Send for PlaneConvexPolyhedronManifoldGenerator<N> where
N: Scalar,
N: Scalar,
impl<N> Sync for PlaneConvexPolyhedronManifoldGenerator<N> where
N: Scalar,
N: Scalar,