pub struct SurfaceDesc {
pub friction: f32,
pub restitution: f32,
pub rolling_friction: f32,
pub spin_friction: f32,
}Fields§
§friction: f32§restitution: f32§rolling_friction: f32§spin_friction: f32Implementations§
Source§impl SurfaceDesc
impl SurfaceDesc
pub fn new() -> Self
pub fn friction(self, friction: f32) -> Self
pub fn restitution(self, restitution: f32) -> Self
pub fn rolling_friction(self, rolling_friction: f32) -> Self
pub fn spin_friction(self, spin_friction: f32) -> Self
Trait Implementations§
Source§impl Clone for SurfaceDesc
impl Clone for SurfaceDesc
Source§fn clone(&self) -> SurfaceDesc
fn clone(&self) -> SurfaceDesc
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 SurfaceDesc
Source§impl Debug for SurfaceDesc
impl Debug for SurfaceDesc
Source§impl Default for SurfaceDesc
impl Default for SurfaceDesc
Source§impl PartialEq for SurfaceDesc
impl PartialEq for SurfaceDesc
impl StructuralPartialEq for SurfaceDesc
Auto Trait Implementations§
impl Freeze for SurfaceDesc
impl RefUnwindSafe for SurfaceDesc
impl Send for SurfaceDesc
impl Sync for SurfaceDesc
impl Unpin for SurfaceDesc
impl UnsafeUnpin for SurfaceDesc
impl UnwindSafe for SurfaceDesc
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