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

pub struct ColliderContactManifold<'a, N: RealField> {
    pub collider1: &'a Collider<N>,
    pub collider2: &'a Collider<N>,
    pub manifold: &'a ContactManifold<N>,
}

A contact manifold between two bodies.

Fields

collider1: &'a Collider<N>

The first collider involved in the contact.

collider2: &'a Collider<N>

The second collider involved in the contact.

manifold: &'a ContactManifold<N>

The contact manifold.

Methods

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

pub fn new(
    collider1: &'a Collider<N>,
    collider2: &'a Collider<N>,
    manifold: &'a ContactManifold<N>
) -> Self
[src]

Initialize a new contact manifold.

pub fn len(&self) -> usize[src]

The number of contacts on the manifold.

pub fn contacts(&self) -> impl Iterator<Item = &TrackedContact<N>>[src]

Get all the contacts from the manifold.

pub fn deepest_contact(&self) -> Option<&TrackedContact<N>>[src]

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

pub fn body1(&self) -> BodyHandle[src]

The handle of the first body involved in the contact.

pub fn body2(&self) -> BodyHandle[src]

The handle of the first body involved in the contact.

pub fn body_part1(&self, feature1: FeatureId) -> BodyPartHandle[src]

The handle of the first body part involved in the given contact on the specified feature.

The feature is assumed to belong to the first collider involved in this contact.

pub fn body_part2(&self, feature2: FeatureId) -> BodyPartHandle[src]

The handle of the second body part involved in the given contact on the specified feature.

The feature is assumed to belong to the second collider involved in this contact.

pub fn anchor1(&self) -> &ColliderAnchor<N>[src]

The anchor between the fist collider and the body it is attached to.

pub fn anchor2(&self) -> &ColliderAnchor<N>[src]

The anchor between the fist collider and the body it is attached to.

Trait Implementations

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

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

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

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

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

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Downcast for T where
    T: Any
[src]

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Same for T

type Output = T

Should always be Self