[−][src]Struct nphysics2d::detection::ColliderContactManifold
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: Real> ColliderContactManifold<'a, N>
[src]
pub fn new(
collider1: &'a Collider<N>,
collider2: &'a Collider<N>,
manifold: &'a ContactManifold<N>
) -> Self
[src]
collider1: &'a Collider<N>,
collider2: &'a Collider<N>,
manifold: &'a ContactManifold<N>
) -> Self
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]
&self
) -> impl Iterator<Item = &TrackedContact<N>>
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 + Real> Clone for ColliderContactManifold<'a, N>
[src]
fn clone(&self) -> 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,
N: Scalar,
impl<'a, N> Sync for ColliderContactManifold<'a, N> where
N: Scalar,
N: Scalar,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> Same for T
type Output = T
Should always be Self