Struct WheelConfig
#[repr(C)]pub struct WheelConfig {
pub radius: f32,
pub spring_stiffness: f32,
pub damping_coeff: f32,
pub rest_length: f32,
pub max_travel: f32,
pub friction: f32,
}Expand description
Wheel configuration parameters.
Fields§
§radius: f32Radius of the wheel in meters.
spring_stiffness: f32Spring stiffness constant $k$ in N/m.
damping_coeff: f32Viscous damping coefficient $c$ in N·s/m.
rest_length: f32Unsprung rest length of suspension in meters.
max_travel: f32Maximum suspension travel stroke in meters.
friction: f32Friction coefficient $\mu$ with ground surface.
Trait Implementations§
§impl Clone for WheelConfig
impl Clone for WheelConfig
§fn clone(&self) -> WheelConfig
fn clone(&self) -> WheelConfig
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 WheelConfig
§impl Debug for WheelConfig
impl Debug for WheelConfig
§impl Default for WheelConfig
impl Default for WheelConfig
§fn default() -> WheelConfig
fn default() -> WheelConfig
Returns the “default value” for a type. Read more
§impl PartialEq for WheelConfig
impl PartialEq for WheelConfig
impl StructuralPartialEq for WheelConfig
Auto Trait Implementations§
impl Freeze for WheelConfig
impl RefUnwindSafe for WheelConfig
impl Send for WheelConfig
impl Sync for WheelConfig
impl Unpin for WheelConfig
impl UnsafeUnpin for WheelConfig
impl UnwindSafe for WheelConfig
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