pub struct ContactMaterialPair {
pub friction: f64,
pub restitution: f64,
pub effective_modulus: f64,
pub damping: f64,
}Expand description
Combined contact properties for a pair of materials.
Fields§
§friction: f64Combined friction coefficient.
restitution: f64Combined restitution coefficient.
effective_modulus: f64Effective Young’s modulus for contact stiffness (Pa).
damping: f64Contact damping coefficient (N·s/m).
Implementations§
Source§impl ContactMaterialPair
impl ContactMaterialPair
Sourcepub fn from_materials(
friction1: f64,
restitution1: f64,
young1: f64,
poisson1: f64,
friction2: f64,
restitution2: f64,
young2: f64,
poisson2: f64,
) -> Self
pub fn from_materials( friction1: f64, restitution1: f64, young1: f64, poisson1: f64, friction2: f64, restitution2: f64, young2: f64, poisson2: f64, ) -> Self
Compute combined contact properties from two materials’ properties.
Uses geometric mean for friction, minimum for restitution, and Hertz formula for effective modulus.
Trait Implementations§
Source§impl Clone for ContactMaterialPair
impl Clone for ContactMaterialPair
Source§fn clone(&self) -> ContactMaterialPair
fn clone(&self) -> ContactMaterialPair
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 moreAuto Trait Implementations§
impl Freeze for ContactMaterialPair
impl RefUnwindSafe for ContactMaterialPair
impl Send for ContactMaterialPair
impl Sync for ContactMaterialPair
impl Unpin for ContactMaterialPair
impl UnsafeUnpin for ContactMaterialPair
impl UnwindSafe for ContactMaterialPair
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