Struct ncollide3d::query::TrackedContact [−][src]
pub struct TrackedContact<N: RealField> { pub contact: Contact<N>, pub kinematic: ContactKinematic<N>, pub id: ContactId, }
A contact combined with contact kinematic information as well as a persistent 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: ContactId
The identifier of this contact.
Implementations
impl<N: RealField> TrackedContact<N>
[src]
impl<N: RealField> TrackedContact<N>
[src]pub fn new(contact: Contact<N>, kinematic: ContactKinematic<N>) -> Self
[src]
Creates a new tracked contact.
Trait Implementations
impl<N: Clone + RealField> Clone for TrackedContact<N>
[src]
impl<N: Clone + RealField> Clone for TrackedContact<N>
[src]fn clone(&self) -> TrackedContact<N>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<N: Debug + RealField> Debug for TrackedContact<N>
[src]
impl<N: Debug + RealField> Debug for TrackedContact<N>
[src]impl<N: Copy + RealField> Copy for TrackedContact<N>
[src]
Auto Trait Implementations
impl<N> RefUnwindSafe for TrackedContact<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for TrackedContact<N>
impl<N> Sync for TrackedContact<N>
impl<N> Unpin for TrackedContact<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for TrackedContact<N> where
N: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T> Slottable for T where
T: Copy,
[src]
T: Copy,