#[repr(C)]pub struct b2WheelJointDef {
pub base: b2JointDef,
pub enableSpring: bool,
pub hertz: f32,
pub dampingRatio: f32,
pub enableLimit: bool,
pub lowerTranslation: f32,
pub upperTranslation: f32,
pub enableMotor: bool,
pub maxMotorTorque: f32,
pub motorSpeed: f32,
pub internalValue: c_int,
}Expand description
Wheel joint definition Body B is a wheel that may rotate freely and slide along the local x-axis in frame A. The joint translation is zero when the local frame origins coincide in world space. @ingroup wheel_joint
Fields§
§base: b2JointDefBase joint definition
enableSpring: boolEnable a linear spring along the local axis
hertz: f32Spring stiffness in Hertz
dampingRatio: f32Spring damping ratio, non-dimensional
enableLimit: boolEnable/disable the joint linear limit
lowerTranslation: f32The lower translation limit
upperTranslation: f32The upper translation limit
enableMotor: boolEnable/disable the joint rotational motor
maxMotorTorque: f32The maximum motor torque, typically in newton-meters
motorSpeed: f32The desired motor speed in radians per second
internalValue: c_intUsed internally to detect a valid definition. DO NOT SET.
Trait Implementations§
Source§impl Clone for b2WheelJointDef
impl Clone for b2WheelJointDef
Source§fn clone(&self) -> b2WheelJointDef
fn clone(&self) -> b2WheelJointDef
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for b2WheelJointDef
impl Debug for b2WheelJointDef
impl Copy for b2WheelJointDef
Auto Trait Implementations§
impl Freeze for b2WheelJointDef
impl RefUnwindSafe for b2WheelJointDef
impl !Send for b2WheelJointDef
impl !Sync for b2WheelJointDef
impl Unpin for b2WheelJointDef
impl UnwindSafe for b2WheelJointDef
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)