Struct ncollide3d::narrow_phase::CompositeShapeShapeManifoldGenerator [−][src]
pub struct CompositeShapeShapeManifoldGenerator<N> { /* fields omitted */ }
Collision detector between a concave shape and another shape.
Methods
impl<N> CompositeShapeShapeManifoldGenerator<N>
[src]
impl<N> CompositeShapeShapeManifoldGenerator<N>
pub fn new(flip: bool) -> CompositeShapeShapeManifoldGenerator<N>
[src]
pub fn new(flip: bool) -> CompositeShapeShapeManifoldGenerator<N>
Creates a new collision detector between a concave shape and another shape.
Trait Implementations
impl<N: Real> ContactManifoldGenerator<N> for CompositeShapeShapeManifoldGenerator<N>
[src]
impl<N: Real> ContactManifoldGenerator<N> for CompositeShapeShapeManifoldGenerator<N>
fn update(
&mut self,
d: &ContactDispatcher<N>,
ida: usize,
ma: &Isometry<N>,
a: &Shape<N>,
idb: usize,
mb: &Isometry<N>,
b: &Shape<N>,
prediction: &ContactPrediction<N>,
id_alloc: &mut IdAllocator
) -> bool
[src]
fn update(
&mut self,
d: &ContactDispatcher<N>,
ida: usize,
ma: &Isometry<N>,
a: &Shape<N>,
idb: usize,
mb: &Isometry<N>,
b: &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 CompositeShapeShapeManifoldGenerator<N>
impl<N> Send for CompositeShapeShapeManifoldGenerator<N>
impl<N> Sync for CompositeShapeShapeManifoldGenerator<N>
impl<N> Sync for CompositeShapeShapeManifoldGenerator<N>