Struct rapier3d::geometry::ContactManifoldData[][src]

pub struct ContactManifoldData {
    pub body_pair: BodyPair,
    pub solver_flags: SolverFlags,
    pub normal: Vector<Real>,
    pub solver_contacts: Vec<SolverContact>,
    pub relative_dominance: i16,
    pub user_data: u32,
    // some fields omitted
}

A contact manifold between two colliders.

A contact manifold describes a set of contacts between two colliders. All the contact part of the same contact manifold share the same contact normal and contact kinematics.

Fields

body_pair: BodyPair

The pair of body involved in this contact manifold.

solver_flags: SolverFlags

Flags used to control some aspects of the constraints solver for this contact manifold.

normal: Vector<Real>

The world-space contact normal shared by all the contact in this contact manifold.

solver_contacts: Vec<SolverContact>

The contacts that will be seen by the constraints solver for computing forces.

relative_dominance: i16

The relative dominance of the bodies involved in this contact manifold.

user_data: u32

A user-defined piece of data.

Implementations

impl ContactManifoldData[src]

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

Number of actives contacts, i.e., contacts that will be seen by the constraints solver.

Trait Implementations

impl Clone for ContactManifoldData[src]

impl Debug for ContactManifoldData[src]

impl Default for ContactManifoldData[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<T> From<T> for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.