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: N
Restitution coefficient of the surface.
friction: N
Friction coefficient of the surface.
Methods
impl<N: Real> Material<N>
[src]
impl<N: Real> Material<N>
pub fn new(restitution: N, friction: N) -> Self
[src]
pub fn new(restitution: N, friction: N) -> Self
Initialize a material with the specified restitution and friction coefficient.
Trait Implementations
impl<N: Clone + Real> Clone for Material<N>
[src]
impl<N: Clone + Real> Clone for Material<N>
fn clone(&self) -> Material<N>
[src]
fn clone(&self) -> Material<N>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<N: Real> Default for Material<N>
[src]
impl<N: Real> Default for Material<N>