pub struct SurfaceMaterial(/* private fields */);Expand description
Shape surface material parameters.
Implementations§
Source§impl SurfaceMaterial
impl SurfaceMaterial
pub fn friction(self, v: f32) -> Self
pub fn restitution(self, v: f32) -> Self
pub fn rolling_resistance(self, v: f32) -> Self
pub fn tangent_speed(self, v: f32) -> Self
pub fn user_material_id(self, v: u64) -> Self
pub fn custom_color(self, rgba: u32) -> Self
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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SurfaceMaterial
impl Debug 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 UnwindSafe for SurfaceMaterial
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)