pub struct CompositeShapeShapeManifoldGenerator<N> { /* private fields */ }
Expand description
Collision detector between a concave shape and another shape.
Implementations§
source§impl<N> CompositeShapeShapeManifoldGenerator<N>
impl<N> CompositeShapeShapeManifoldGenerator<N>
sourcepub fn new(flip: bool) -> CompositeShapeShapeManifoldGenerator<N>
pub fn new(flip: bool) -> CompositeShapeShapeManifoldGenerator<N>
Creates a new collision detector between a concave shape and another shape.
Trait Implementations§
source§impl<N: Real> ContactManifoldGenerator<N> for CompositeShapeShapeManifoldGenerator<N>
impl<N: Real> ContactManifoldGenerator<N> for CompositeShapeShapeManifoldGenerator<N>
source§fn update(
&mut self,
d: &dyn ContactDispatcher<N>,
ida: usize,
ma: &Isometry<N>,
a: &dyn Shape<N>,
idb: usize,
mb: &Isometry<N>,
b: &dyn Shape<N>,
prediction: &ContactPrediction<N>,
id_alloc: &mut IdAllocator
) -> bool
fn update(
&mut self,
d: &dyn ContactDispatcher<N>,
ida: usize,
ma: &Isometry<N>,
a: &dyn Shape<N>,
idb: usize,
mb: &Isometry<N>,
b: &dyn 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
source§fn num_contacts(&self) -> usize
fn num_contacts(&self) -> usize
The number of contacts found.
source§fn contacts<'a: 'b, 'b>(&'a self, out: &'b mut Vec<&'a ContactManifold<N>>)
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> !RefUnwindSafe for CompositeShapeShapeManifoldGenerator<N>
impl<N> Send for CompositeShapeShapeManifoldGenerator<N>
impl<N> Sync for CompositeShapeShapeManifoldGenerator<N>
impl<N> Unpin for CompositeShapeShapeManifoldGenerator<N>
impl<N> !UnwindSafe for CompositeShapeShapeManifoldGenerator<N>
Blanket Implementations§
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.