pub struct ContactMaterial {
pub friction: f64,
pub restitution: f64,
}Expand description
The friction and restitution one contact between two surfaces uses.
Fields§
§friction: f64The combined coefficient of friction.
restitution: f64The combined coefficient of restitution.
Trait Implementations§
Source§impl Clone for ContactMaterial
impl Clone for ContactMaterial
impl Copy for ContactMaterial
Source§impl Debug for ContactMaterial
impl Debug for ContactMaterial
Source§impl PartialEq for ContactMaterial
impl PartialEq for ContactMaterial
impl StructuralPartialEq for ContactMaterial
Auto Trait Implementations§
impl Forget for ContactMaterial
impl Freeze for ContactMaterial
impl Move for ContactMaterial
impl RefUnwindSafe for ContactMaterial
impl Send for ContactMaterial
impl Sync for ContactMaterial
impl Unpin for ContactMaterial
impl UnsafeUnpin for ContactMaterial
impl UnwindSafe for ContactMaterial
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