#[repr(C)]pub struct b3WheelJointDef {Show 18 fields
pub base: b3JointDef,
pub enableSuspensionSpring: bool,
pub suspensionHertz: f32,
pub suspensionDampingRatio: f32,
pub enableSuspensionLimit: bool,
pub lowerSuspensionLimit: f32,
pub upperSuspensionLimit: f32,
pub enableSpinMotor: bool,
pub maxSpinTorque: f32,
pub spinSpeed: f32,
pub enableSteering: bool,
pub steeringHertz: f32,
pub steeringDampingRatio: f32,
pub targetSteeringAngle: f32,
pub maxSteeringTorque: f32,
pub enableSteeringLimit: bool,
pub lowerSteeringLimit: f32,
pub upperSteeringLimit: f32,
}Expand description
Wheel joint definition Body A is the chassis and body B is the wheel. The wheel rotates around the local z-axis in frame B. The wheel translates along the local x-axis in frame A. The wheel can optionally steer along the x-axis in frame A. @ingroup wheel_joint
Fields§
§base: b3JointDefBase joint definition
enableSuspensionSpring: boolEnable a linear spring along the local axis
suspensionHertz: f32Spring stiffness in Hertz
suspensionDampingRatio: f32Spring damping ratio, non-dimensional
enableSuspensionLimit: boolEnable/disable the joint linear limit
lowerSuspensionLimit: f32The lower suspension translation limit
upperSuspensionLimit: f32The upper translation limit
enableSpinMotor: boolEnable/disable the joint rotational motor
maxSpinTorque: f32The maximum motor torque, typically in newton-meters
spinSpeed: f32The desired motor speed in radians per second
enableSteering: boolEnable steering, otherwise the steering is fixed forward
steeringHertz: f32Steering stiffness in Hertz
steeringDampingRatio: f32Spring damping ratio, non-dimensional
targetSteeringAngle: f32The target steering angle in radians
maxSteeringTorque: f32The maximum steering torque in N*m
enableSteeringLimit: boolEnable/disable the steering angular limit
lowerSteeringLimit: f32The lower steering angle in radians
upperSteeringLimit: f32The upper steering angle in radians
Trait Implementations§
Source§impl Clone for b3WheelJointDef
impl Clone for b3WheelJointDef
Source§fn clone(&self) -> b3WheelJointDef
fn clone(&self) -> b3WheelJointDef
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more