[][src]Struct nphysics2d::material::MaterialContext

pub struct MaterialContext<'a, N: Real> {
    pub body: &'a dyn Body<N>,
    pub body_part: &'a dyn BodyPart<N>,
    pub collider: &'a Collider<N>,
    pub contact: &'a TrackedContact<N>,
    pub is_first: bool,
}

The context for determining the local material properties at a contact.

Fields

One of the two bodies involved in the contact.

One of the two bodies part involved in the contact.

One of the two colliders involved in the contact.

The contact.

Whether the bodies (and collider) in this structure are the first one involved in the contact.

This is false if the body involved in the contact is the second one.

Trait Implementations

impl<'a, N: Copy + Real> Copy for MaterialContext<'a, N>
[src]

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

Performs copy-assignment from source. Read more

Auto Trait Implementations

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

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

Blanket Implementations

impl<T> From for T
[src]

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

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, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Downcast for T where
    T: Any

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Same for T

Should always be Self