#[repr(C)]pub struct b3RevoluteJointDef {
pub base: b3JointDef,
pub targetAngle: f32,
pub enableSpring: bool,
pub hertz: f32,
pub dampingRatio: f32,
pub enableLimit: bool,
pub lowerAngle: f32,
pub upperAngle: f32,
pub enableMotor: bool,
pub maxMotorTorque: f32,
pub motorSpeed: f32,
}Expand description
Revolute joint definition. A point on body B is fixed to a point on body A. Allows relative rotation about the z-axis. @ingroup revolute_joint
Fields§
§base: b3JointDefBase joint definition.
targetAngle: f32The bodyB angle minus bodyA angle in the reference state (radians). This defines the zero angle for the joint limit.
enableSpring: boolEnable a rotational spring on the revolute hinge axis.
hertz: f32The spring stiffness Hertz, cycles per second.
dampingRatio: f32The spring damping ratio, non-dimensional.
enableLimit: boolA flag to enable joint limits.
lowerAngle: f32The lower angle for the joint limit in radians. Minimum of -0.99*pi radians.
upperAngle: f32The upper angle for the joint limit in radians. Maximum of 0.99*pi radians.
enableMotor: boolA flag to enable the joint motor.
maxMotorTorque: f32The maximum motor torque, typically in newton-meters.
motorSpeed: f32The desired motor speed in radians per second.
Trait Implementations§
Source§impl Clone for b3RevoluteJointDef
impl Clone for b3RevoluteJointDef
Source§fn clone(&self) -> b3RevoluteJointDef
fn clone(&self) -> b3RevoluteJointDef
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 b3RevoluteJointDef
Auto Trait Implementations§
impl !Send for b3RevoluteJointDef
impl !Sync for b3RevoluteJointDef
impl Freeze for b3RevoluteJointDef
impl RefUnwindSafe for b3RevoluteJointDef
impl Unpin for b3RevoluteJointDef
impl UnsafeUnpin for b3RevoluteJointDef
impl UnwindSafe for b3RevoluteJointDef
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