Struct ncollide3d::narrow_phase::BallConvexPolyhedronManifoldGenerator [−][src]
pub struct BallConvexPolyhedronManifoldGenerator<N: Real> { /* fields omitted */ }
Collision detector between two balls.
Methods
impl<N: Real> BallConvexPolyhedronManifoldGenerator<N>
[src]
impl<N: Real> BallConvexPolyhedronManifoldGenerator<N>
pub fn new(flip: bool) -> BallConvexPolyhedronManifoldGenerator<N>
[src]
pub fn new(flip: bool) -> BallConvexPolyhedronManifoldGenerator<N>
Creates a new persistent collision detector between two balls.
Trait Implementations
impl<N: Real> Clone for BallConvexPolyhedronManifoldGenerator<N>
[src]
impl<N: Real> Clone for BallConvexPolyhedronManifoldGenerator<N>
fn clone(&self) -> BallConvexPolyhedronManifoldGenerator<N>
[src]
fn clone(&self) -> BallConvexPolyhedronManifoldGenerator<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 BallConvexPolyhedronManifoldGenerator<N>
[src]
impl<N: Real> ContactManifoldGenerator<N> for BallConvexPolyhedronManifoldGenerator<N>
fn update(
&mut self,
_: &ContactDispatcher<N>,
id1: usize,
m1: &Isometry<N>,
a: &Shape<N>,
id2: usize,
m2: &Isometry<N>,
b: &Shape<N>,
prediction: &ContactPrediction<N>,
id_alloc: &mut IdAllocator
) -> bool
[src]
fn update(
&mut self,
_: &ContactDispatcher<N>,
id1: usize,
m1: &Isometry<N>,
a: &Shape<N>,
id2: usize,
m2: &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 BallConvexPolyhedronManifoldGenerator<N> where
N: Scalar,
impl<N> Send for BallConvexPolyhedronManifoldGenerator<N> where
N: Scalar,
impl<N> Sync for BallConvexPolyhedronManifoldGenerator<N> where
N: Scalar,
impl<N> Sync for BallConvexPolyhedronManifoldGenerator<N> where
N: Scalar,