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

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

A contact manifold.

A contat manifold is a set of contacts lying on the same plane. The convex hull of those contacts are often interpreted as a contact surface. This structure is responsible for matching new contacts with old ones in order to perform an approximat tracking of the contact points.

Methods

impl<N: Real> ContactManifold<N>
[src]

Initializes a contact manifold without any contact.

The identifier of the first sub-shape the contacts of this manifold lie on.

Sets the identifier of the first sub-shape the contacts of this manifold lie on.

The identifier of the first sub-shape the contacts of this manifold lie on.

Sets the identifier of the first sub-shape the contacts of this manifold lie on.

The number of contacts contained by this manifold.

All the contact tracked by this manifold.

The index of the contact with the greatest penetration depth.

The contact of this manifold with the deepest penetration depth.

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 identifer.

Trait Implementations

impl<N: Clone + Real> Clone for ContactManifold<N>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N: Debug + Real> Debug for ContactManifold<N>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

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

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