Struct ark_api::world::D6DriveParams
source · pub struct D6DriveParams {
pub stiffness: f32,
pub damping: f32,
pub force_limit: f32,
}Expand description
The parameters for a drive on a D6 joint.
Fields§
§stiffness: f32Stiffness of the drive spring: The amount of torque needed to move the joint to its target orientation (not used for velocity drive).
damping: f32Damping of the drive spring: Tweak to apply damping to the spring to smooth out any oscillations.
force_limit: f32Force limit: Maximum force/acceleration the drive can apply.
Trait Implementations§
source§impl Clone for D6DriveParams
impl Clone for D6DriveParams
source§fn clone(&self) -> D6DriveParams
fn clone(&self) -> D6DriveParams
Returns a copy 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 D6DriveParams
impl Debug for D6DriveParams
source§impl ValueConverterTrait<D6DriveParams> for ValueConverter
impl ValueConverterTrait<D6DriveParams> for ValueConverter
source§fn into_value(v: D6DriveParams) -> Value
fn into_value(v: D6DriveParams) -> Value
Wraps the passed-in value in a
Value enum.source§fn from_value(v: &Value) -> D6DriveParams
fn from_value(v: &Value) -> D6DriveParams
Extracts the value from a
Value enum.impl Copy for D6DriveParams
Auto Trait Implementations§
impl RefUnwindSafe for D6DriveParams
impl Send for D6DriveParams
impl Sync for D6DriveParams
impl Unpin for D6DriveParams
impl UnwindSafe for D6DriveParams
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