Struct ncollide2d::narrow_phase::ConvexPolyhedronConvexPolyhedronManifoldGenerator
[−]
[src]
pub struct ConvexPolyhedronConvexPolyhedronManifoldGenerator<N: Real> { /* fields omitted */ }
Persistent contact manifold computation between two shapes having a support mapping function.
It is based on the GJK algorithm. This detector generates only one contact point. For a full
manifold generation, see IncrementalContactManifoldGenerator
.
Methods
impl<N: Real> ConvexPolyhedronConvexPolyhedronManifoldGenerator<N>
[src]
pub fn new() -> ConvexPolyhedronConvexPolyhedronManifoldGenerator<N>
[src]
Creates a new persistant collision detector between two convex polyhedra.
Trait Implementations
impl<N: Clone + Real> Clone for ConvexPolyhedronConvexPolyhedronManifoldGenerator<N>
[src]
fn clone(&self) -> ConvexPolyhedronConvexPolyhedronManifoldGenerator<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 ConvexPolyhedronConvexPolyhedronManifoldGenerator<N>
[src]
fn update(
&mut self,
_: &ContactDispatcher<N>,
ida: usize,
ma: &Isometry<N>,
a: &Shape<N>,
idb: usize,
mb: &Isometry<N>,
b: &Shape<N>,
prediction: &ContactPrediction<N>,
ids: &mut IdAllocator
) -> bool
[src]
&mut self,
_: &ContactDispatcher<N>,
ida: usize,
ma: &Isometry<N>,
a: &Shape<N>,
idb: usize,
mb: &Isometry<N>,
b: &Shape<N>,
prediction: &ContactPrediction<N>,
ids: &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 ConvexPolyhedronConvexPolyhedronManifoldGenerator<N> where
N: Scalar,
N: Scalar,
impl<N> Sync for ConvexPolyhedronConvexPolyhedronManifoldGenerator<N> where
N: Scalar,
N: Scalar,