#[repr(C)]pub struct b2RevoluteJointDef {
pub base: b2JointDef,
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,
pub internalValue: c_int,
}Expand description
Revolute joint definition A point on body B is fixed to a point on body A. Allows relative rotation. @ingroup revolute_joint
Fields§
§base: b2JointDefBase joint definition
targetAngle: f32The target angle for the joint in radians. The spring-damper will drive to this angle.
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
internalValue: c_intUsed internally to detect a valid definition. DO NOT SET.
Trait Implementations§
Source§impl Clone for b2RevoluteJointDef
impl Clone for b2RevoluteJointDef
Source§fn clone(&self) -> b2RevoluteJointDef
fn clone(&self) -> b2RevoluteJointDef
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 b2RevoluteJointDef
impl Debug for b2RevoluteJointDef
impl Copy for b2RevoluteJointDef
Auto Trait Implementations§
impl Freeze for b2RevoluteJointDef
impl RefUnwindSafe for b2RevoluteJointDef
impl !Send for b2RevoluteJointDef
impl !Sync for b2RevoluteJointDef
impl Unpin for b2RevoluteJointDef
impl UnwindSafe for b2RevoluteJointDef
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)