Struct ncollide3d::query::contacts_internal::TrackedContact [−][src]
pub struct TrackedContact<N: Real> { pub contact: Contact<N>, pub kinematic: ContactKinematic<N>, pub id: GenerationalId, }
A contact combined with contact kinematic information as well as a persistant identifier.
When ncollide is used to compute contact points between moving solids, it will attempt to
match contact points found at successive frames. Two contact points are said to "match" if
they can be seen as the same contact point that moved in-between frames. Two matching
contact points are given the same id
here.
Fields
contact: Contact<N>
The geometric contact information.
kinematic: ContactKinematic<N>
The local contact kinematic.
id: GenerationalId
The identifier of this contact.
Methods
impl<N: Real> TrackedContact<N>
[src]
impl<N: Real> TrackedContact<N>
pub fn new(
contact: Contact<N>,
kinematic: ContactKinematic<N>,
id: GenerationalId
) -> Self
[src]
pub fn new(
contact: Contact<N>,
kinematic: ContactKinematic<N>,
id: GenerationalId
) -> Self
Creates a new tracked contact.
Trait Implementations
impl<N: Clone + Real> Clone for TrackedContact<N>
[src]
impl<N: Clone + Real> Clone for TrackedContact<N>
fn clone(&self) -> TrackedContact<N>
[src]
fn clone(&self) -> TrackedContact<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: Debug + Real> Debug for TrackedContact<N>
[src]
impl<N: Debug + Real> Debug for TrackedContact<N>
Auto Trait Implementations
impl<N> Send for TrackedContact<N> where
N: Scalar,
impl<N> Send for TrackedContact<N> where
N: Scalar,
impl<N> Sync for TrackedContact<N> where
N: Scalar,
impl<N> Sync for TrackedContact<N> where
N: Scalar,