Struct nphysics3d::object::Material[][src]

pub struct Material<N: Real> {
    pub restitution: N,
    pub friction: N,
}

Description of the state of surface of a solid.

Strictly speaking, the coefficient provided here only exist when considering a pair of touching surfaces. In practive, nphysics will average the coefficient of the two surfaces in contact in order to deduce the restitution/friction coefficient.

Fields

Restitution coefficient of the surface.

Friction coefficient of the surface.

Methods

impl<N: Real> Material<N>
[src]

Initialize a material with the specified restitution and friction coefficient.

Trait Implementations

impl<N: Clone + Real> Clone for Material<N>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N: Real> Default for Material<N>
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<N> Send for Material<N>

impl<N> Sync for Material<N>