pub struct MaterialMixInput {
pub coefficient: f32,
pub user_material_id: u64,
}Expand description
Input passed to world-level friction and restitution mixing callbacks.
coefficient is the shape’s friction or restitution coefficient, depending on the callback.
Fields§
§coefficient: f32§user_material_id: u64Implementations§
Trait Implementations§
Source§impl Clone for MaterialMixInput
impl Clone for MaterialMixInput
Source§fn clone(&self) -> MaterialMixInput
fn clone(&self) -> MaterialMixInput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MaterialMixInput
impl Debug for MaterialMixInput
Source§impl PartialEq for MaterialMixInput
impl PartialEq for MaterialMixInput
impl Copy for MaterialMixInput
impl StructuralPartialEq for MaterialMixInput
Auto Trait Implementations§
impl Freeze for MaterialMixInput
impl RefUnwindSafe for MaterialMixInput
impl Send for MaterialMixInput
impl Sync for MaterialMixInput
impl Unpin for MaterialMixInput
impl UnsafeUnpin for MaterialMixInput
impl UnwindSafe for MaterialMixInput
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