#[repr(C)]pub struct b3MotorJointDef {
pub base: b3JointDef,
pub linearVelocity: b3Vec3,
pub maxVelocityForce: f32,
pub angularVelocity: b3Vec3,
pub maxVelocityTorque: f32,
pub linearHertz: f32,
pub linearDampingRatio: f32,
pub maxSpringForce: f32,
pub angularHertz: f32,
pub angularDampingRatio: f32,
pub maxSpringTorque: f32,
}Expand description
A motor joint is used to control the relative position and velocity between two bodies. @ingroup motor_joint
Fields§
§base: b3JointDefBase joint definition
linearVelocity: b3Vec3The desired linear velocity
maxVelocityForce: f32The maximum motor force in newtons
angularVelocity: b3Vec3The desired angular velocity
maxVelocityTorque: f32The maximum motor torque in newton-meters
linearHertz: f32Linear spring hertz for position control
linearDampingRatio: f32Linear spring damping ratio
maxSpringForce: f32Maximum spring force in newtons
angularHertz: f32Angular spring hertz for position control
angularDampingRatio: f32Angular spring damping ratio
maxSpringTorque: f32Maximum spring torque in newton-meters
Trait Implementations§
Source§impl Clone for b3MotorJointDef
impl Clone for b3MotorJointDef
Source§fn clone(&self) -> b3MotorJointDef
fn clone(&self) -> b3MotorJointDef
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 b3MotorJointDef
Auto Trait Implementations§
impl !Send for b3MotorJointDef
impl !Sync for b3MotorJointDef
impl Freeze for b3MotorJointDef
impl RefUnwindSafe for b3MotorJointDef
impl Unpin for b3MotorJointDef
impl UnsafeUnpin for b3MotorJointDef
impl UnwindSafe for b3MotorJointDef
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