Struct nphysics3d::detection::ColliderContactManifold[][src]

pub struct ColliderContactManifold<'a, N: Real> {
    pub collider1: &'a Collider<N>,
    pub collider2: &'a Collider<N>,
    pub pos_wrt_body1: Isometry<N>,
    pub pos_wrt_body2: Isometry<N>,
    pub manifold: &'a ContactManifold<N>,
}

A contact manifold between two bodies.

Fields

The first collider involved in the contact.

The second collider involved in the contact.

The position of the contact manifold wrt. the first body.

This is the frame in which the contact kinematic informations are expressed relative to the first body. This can be different from collider1.position_wrt_body() when the collider has a composite shape.

The position of the contact manifold wrt. the second body.

This is the frame in which the contact kinematic informations are expressed relative to the second body. This can be different from collider2.position_wrt_body() when the collider has a composite shape.

The contact manifold.

Methods

impl<'a, N: Real> ColliderContactManifold<'a, N>
[src]

Initialize a new contact manifold.

The number of contacts on the manifold.

Important traits for &'a [u8]

Get all the contacts from the manifold.

Get the deepest contact, if any, from the manifold.

The handle of the first body part involved in the contact.

The handle of the first body part involved in the contact.

Trait Implementations

impl<'a, N: Clone + Real> Clone for ColliderContactManifold<'a, N>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'a, N> Send for ColliderContactManifold<'a, N> where
    N: Scalar

impl<'a, N> Sync for ColliderContactManifold<'a, N> where
    N: Scalar