pub trait HasMaterial {
// Required method
fn material(&self) -> &PhysicsMaterial;
}Expand description
Trait for objects that expose a surface material.
Required Methods§
Sourcefn material(&self) -> &PhysicsMaterial
fn material(&self) -> &PhysicsMaterial
Return the physics material for this object’s surface.