Struct ncollide3d::narrow_phase::PlaneBallManifoldGenerator [−][src]
pub struct PlaneBallManifoldGenerator<N: Real> { /* fields omitted */ }
Collision detector between g1 plane and g1 shape implementing the SupportMap
trait.
Methods
impl<N: Real> PlaneBallManifoldGenerator<N>
[src]
impl<N: Real> PlaneBallManifoldGenerator<N>
pub fn new(flip: bool) -> PlaneBallManifoldGenerator<N>
[src]
pub fn new(flip: bool) -> PlaneBallManifoldGenerator<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 PlaneBallManifoldGenerator<N>
[src]
impl<N: Clone + Real> Clone for PlaneBallManifoldGenerator<N>
fn clone(&self) -> PlaneBallManifoldGenerator<N>
[src]
fn clone(&self) -> PlaneBallManifoldGenerator<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 PlaneBallManifoldGenerator<N>
[src]
impl<N: Real> ContactManifoldGenerator<N> for PlaneBallManifoldGenerator<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 PlaneBallManifoldGenerator<N> where
N: Scalar,
impl<N> Send for PlaneBallManifoldGenerator<N> where
N: Scalar,
impl<N> Sync for PlaneBallManifoldGenerator<N> where
N: Scalar,
impl<N> Sync for PlaneBallManifoldGenerator<N> where
N: Scalar,