#[repr(C)]pub struct SurfaceMaterial {
pub friction: f32,
pub restitution: f32,
pub rolling_resistance: f32,
pub tangent_velocity: Vec3,
pub user_material_id: u64,
pub custom_color: u32,
}Expand description
Material properties supported per triangle on meshes and height fields. (b3SurfaceMaterial)
Fields§
§friction: f32The Coulomb (dry) friction coefficient, usually in the range [0,1].
restitution: f32The coefficient of restitution (bounce) usually in the range [0,1].
rolling_resistance: f32The rolling resistance usually in the range [0,1].
tangent_velocity: Vec3The tangent velocity for conveyor belts.
user_material_id: u64User material identifier.
custom_color: u32Custom debug draw color. Ignored if 0.
Implementations§
Trait Implementations§
Source§impl Clone for SurfaceMaterial
impl Clone for SurfaceMaterial
Source§fn clone(&self) -> SurfaceMaterial
fn clone(&self) -> SurfaceMaterial
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SurfaceMaterial
Source§impl Debug for SurfaceMaterial
impl Debug for SurfaceMaterial
Source§impl Default for SurfaceMaterial
impl Default for SurfaceMaterial
Source§impl PartialEq for SurfaceMaterial
impl PartialEq for SurfaceMaterial
impl StructuralPartialEq for SurfaceMaterial
Auto Trait Implementations§
impl Freeze for SurfaceMaterial
impl RefUnwindSafe for SurfaceMaterial
impl Send for SurfaceMaterial
impl Sync for SurfaceMaterial
impl Unpin for SurfaceMaterial
impl UnsafeUnpin for SurfaceMaterial
impl UnwindSafe for SurfaceMaterial
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more