pub struct SpringConfig {
pub stiffness: f32,
pub damping: f32,
pub mass: f32,
pub epsilon: f32,
}Expand description
Physical parameters used by a Spring.
Fields§
§stiffness: f32Restoring force applied toward the target.
damping: f32Resistance applied against the current velocity.
mass: f32Inertial mass used by the spring simulation.
epsilon: f32Position and velocity threshold used to detect completion.
Trait Implementations§
Source§impl Clone for SpringConfig
impl Clone for SpringConfig
Source§fn clone(&self) -> SpringConfig
fn clone(&self) -> SpringConfig
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 SpringConfig
Source§impl Debug for SpringConfig
impl Debug for SpringConfig
Source§impl Default for SpringConfig
impl Default for SpringConfig
Source§impl PartialEq for SpringConfig
impl PartialEq for SpringConfig
Source§fn eq(&self, other: &SpringConfig) -> bool
fn eq(&self, other: &SpringConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SpringConfig
Auto Trait Implementations§
impl Freeze for SpringConfig
impl RefUnwindSafe for SpringConfig
impl Send for SpringConfig
impl Sync for SpringConfig
impl Unpin for SpringConfig
impl UnsafeUnpin for SpringConfig
impl UnwindSafe for SpringConfig
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