[][src]Trait nphysics2d::material::Material

pub trait Material<N: Real>: Downcast + Send + Sync + MaterialClone<N> {
    fn local_properties(
        &self,
        context: MaterialContext<N>
    ) -> LocalMaterialProperties<N>; }

An abstract material.

Required Methods

Retrieve the local material properties of a collider at the given contact point.

Methods

impl<N> dyn Material<N> where
    N: Any + 'static,
    N: Real, 

Returns true if the trait object wraps an object of type __T.

Returns a boxed object from a boxed trait object if the underlying object is of type __T. Returns the original boxed trait if it isn't.

Returns a reference to the object within the trait object if it is of type __T, or None if it isn't.

Returns a mutable reference to the object within the trait object if it is of type __T, or None if it isn't.

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

Combine two materials given their contexts and a material lookup table.

Trait Implementations

impl<N: Real> AsRef<dyn Material<N> + 'static> for MaterialHandle<N>
[src]

Implementors

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