pub struct BallBallProximityDetector { /* private fields */ }
Expand description
Proximity detector between two balls.
Implementations§
source§impl BallBallProximityDetector
impl BallBallProximityDetector
sourcepub fn new() -> BallBallProximityDetector
pub fn new() -> BallBallProximityDetector
Creates a new persistent collision detector between two balls.
Trait Implementations§
source§impl Clone for BallBallProximityDetector
impl Clone for BallBallProximityDetector
source§fn clone(&self) -> BallBallProximityDetector
fn clone(&self) -> BallBallProximityDetector
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<N: Real> ProximityDetector<N> for BallBallProximityDetector
impl<N: Real> ProximityDetector<N> for BallBallProximityDetector
source§fn update(
&mut self,
_: &dyn ProximityDispatcher<N>,
ma: &Isometry<N>,
a: &dyn Shape<N>,
mb: &Isometry<N>,
b: &dyn Shape<N>,
margin: N
) -> bool
fn update(
&mut self,
_: &dyn ProximityDispatcher<N>,
ma: &Isometry<N>,
a: &dyn Shape<N>,
mb: &Isometry<N>,
b: &dyn Shape<N>,
margin: N
) -> bool
Runs the proximity detection on two objects. It is assumed that the same proximity detector
(the same structure) is always used with the same pair of object. Read more
Auto Trait Implementations§
impl RefUnwindSafe for BallBallProximityDetector
impl Send for BallBallProximityDetector
impl Sync for BallBallProximityDetector
impl Unpin for BallBallProximityDetector
impl UnwindSafe for BallBallProximityDetector
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.