[][src]Enum nphysics2d::material::MaterialCombineMode

pub enum MaterialCombineMode {
    Average,
    Min,
    Multiply,
    Max,
    Lookup,
}

The way the friction and restitution coefficients of two materials should be combined.

Variants

Combination by averaging the coefficients from both materials.

Combination by taking the min of the coefficients from both materials.

Has precedence over the Average combine mode.

Combination by multiplying the coefficients from both materials.

Has precedence over the Min and Average combine modes.

Combination by taking the max the coefficients from both materials.

Has precedence over all other combine mode.

Should not be used directly. This is set as a result of the combine method if the combination was performed by a lookup on the MaterialsCoefficientsTable.

Methods

impl MaterialCombineMode
[src]

Combines two coefficients using their associated MaterialCombineMode.

The combine mode with the highest precedence among the two provided determines the actual formula used. Precedences are described on the MaterialCombineMode enum.

Trait Implementations

impl Copy for MaterialCombineMode
[src]

impl Clone for MaterialCombineMode
[src]

Performs copy-assignment from source. Read more

impl Debug for MaterialCombineMode
[src]

Auto Trait Implementations

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