Struct ncollide3d::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]
impl<N: Real> PlaneConvexPolyhedronManifoldGenerator<N>
pub fn new(flip: bool) -> PlaneConvexPolyhedronManifoldGenerator<N>
[src]
pub fn new(flip: bool) -> PlaneConvexPolyhedronManifoldGenerator<N>
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]
impl<N: Clone + Real> Clone for PlaneConvexPolyhedronManifoldGenerator<N>
fn clone(&self) -> PlaneConvexPolyhedronManifoldGenerator<N>
[src]
fn clone(&self) -> PlaneConvexPolyhedronManifoldGenerator<N>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
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]
impl<N: Real> ContactManifoldGenerator<N> for PlaneConvexPolyhedronManifoldGenerator<N>
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]
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
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]
fn num_contacts(&self) -> usize
The number of contacts found.
fn contacts<'a: 'b, 'b>(&'a self, out: &'b mut Vec<&'a ContactManifold<N>>)
[src]
fn contacts<'a: 'b, 'b>(&'a self, out: &'b mut Vec<&'a ContactManifold<N>>)
Collects the contact manifolds generated by the last update.
Auto Trait Implementations
impl<N> Send for PlaneConvexPolyhedronManifoldGenerator<N> where
N: Scalar,
impl<N> Send for PlaneConvexPolyhedronManifoldGenerator<N> where
N: Scalar,
impl<N> Sync for PlaneConvexPolyhedronManifoldGenerator<N> where
N: Scalar,
impl<N> Sync for PlaneConvexPolyhedronManifoldGenerator<N> where
N: Scalar,