[][src]Struct ncollide2d::query::ContactManifold

pub struct ContactManifold<N: Real> { /* fields omitted */ }

A contact manifold.

A contact manifold is a set of contacts between two shapes. If the shapes are convex, then the convex hull of those contacts are often interpreted as surface. This structure is responsible for matching new contacts with old ones in order to perform an approximate tracking of the contact points.


impl<N: Real> ContactManifold<N>

Initializes a contact manifold without any contact.

The default contact tracking mode is set to ContactTrackingMode::DistanceBased(0.02).

The number of contacts contained by this manifold.

All the contact tracked by this manifold.

Mutable reference to all the contact tracked by this manifold.

The contact of this manifold with the deepest penetration depth.

Empty the manifold as well as its cache.

Gets the technique currently used for tracking contacts.

Sets the technique used for tracking contacts.

If the selected method is different from the current one, the current contact cache is cleared.

Save the contacts to a cache and empty the manifold.

Add a new contact to the manifold.

The manifold will attempt to match this contact with another one previously added and added to the cache by the last call to save_cache_and_clear. The matching is done by spacial proximity, i.e., two contacts that are sufficiently close will be given the same identifier.

Trait Implementations

impl<N: Clone + Real> Clone for ContactManifold<N>

Performs copy-assignment from source. Read more

impl<N: Debug + Real> Debug for ContactManifold<N>

Auto Trait Implementations

impl<N> Send for ContactManifold<N> where
    N: Scalar

impl<N> Sync for ContactManifold<N> where
    N: Scalar

Blanket Implementations

impl<T> From for T

impl<T, U> Into for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

impl<T, U> TryFrom for T where
    T: From<U>, 

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Downcast for T where
    T: Any

impl<T> Same for T

Should always be Self