pub struct TrackedContact<N: Real> {
    pub contact: Contact<N>,
    pub kinematic: ContactKinematic<N>,
    pub id: GenerationalId,
}
Expand description

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.

Implementations§

Creates a new tracked contact.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Checks if self is actually part of its subset T (and can be converted to it).
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
The inclusion map: converts self to the equivalent element of its superset.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.