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]

[src]

Initializes a contact manifold without any contact.

[src]

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

[src]

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

[src]

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

[src]

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

[src]

The number of contacts contained by this manifold.

[src]

All the contact tracked by this manifold.

[src]

The index of the contact with the greatest penetration depth.

[src]

The contact of this manifold with the deepest penetration depth.

[src]

Save the contacts to a cache and empty the manifold.

[src]

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[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