pub struct DynamicParams {
pub mass: f32,
pub friction: f32,
pub restitution: f32,
pub gravity_scale: f32,
pub linear_damping: f32,
}Expand description
Physical parameters for a dynamic (freely simulated) body.
Fields§
§mass: f32Mass in kilograms. 0.0 derives mass from the shape’s volume.
friction: f32Coulomb friction coefficient.
restitution: f32Bounciness in [0, 1].
gravity_scale: f32Multiplier on the world gravity for this body.
linear_damping: f32Linear velocity damping (air drag).
Trait Implementations§
Source§impl Clone for DynamicParams
impl Clone for DynamicParams
Source§fn clone(&self) -> DynamicParams
fn clone(&self) -> DynamicParams
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 DynamicParams
Source§impl Debug for DynamicParams
impl Debug for DynamicParams
Source§impl PartialEq for DynamicParams
impl PartialEq for DynamicParams
impl StructuralPartialEq for DynamicParams
Auto Trait Implementations§
impl Freeze for DynamicParams
impl RefUnwindSafe for DynamicParams
impl Send for DynamicParams
impl Sync for DynamicParams
impl Unpin for DynamicParams
impl UnsafeUnpin for DynamicParams
impl UnwindSafe for DynamicParams
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