#[repr(C)]pub struct b2PrismaticJointDef {
pub base: b2JointDef,
pub enableSpring: bool,
pub hertz: f32,
pub dampingRatio: f32,
pub targetTranslation: f32,
pub enableLimit: bool,
pub lowerTranslation: f32,
pub upperTranslation: f32,
pub enableMotor: bool,
pub maxMotorForce: f32,
pub motorSpeed: f32,
pub internalValue: c_int,
}Expand description
Prismatic joint definition Body B may slide along the x-axis in local frame A. Body B cannot rotate relative to body A. The joint translation is zero when the local frame origins coincide in world space. @ingroup prismatic_joint
Fields§
§base: b2JointDefBase joint definition
enableSpring: boolEnable a linear spring along the prismatic joint axis
hertz: f32The spring stiffness Hertz, cycles per second
dampingRatio: f32The spring damping ratio, non-dimensional
targetTranslation: f32The target translation for the joint in meters. The spring-damper will drive to this translation.
enableLimit: boolEnable/disable the joint limit
lowerTranslation: f32The lower translation limit
upperTranslation: f32The upper translation limit
enableMotor: boolEnable/disable the joint motor
maxMotorForce: f32The maximum motor force, typically in newtons
motorSpeed: f32The desired motor speed, typically in meters per second
internalValue: c_intUsed internally to detect a valid definition. DO NOT SET.
Trait Implementations§
Source§impl Clone for b2PrismaticJointDef
impl Clone for b2PrismaticJointDef
Source§fn clone(&self) -> b2PrismaticJointDef
fn clone(&self) -> b2PrismaticJointDef
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for b2PrismaticJointDef
impl Debug for b2PrismaticJointDef
impl Copy for b2PrismaticJointDef
Auto Trait Implementations§
impl Freeze for b2PrismaticJointDef
impl RefUnwindSafe for b2PrismaticJointDef
impl !Send for b2PrismaticJointDef
impl !Sync for b2PrismaticJointDef
impl Unpin for b2PrismaticJointDef
impl UnwindSafe for b2PrismaticJointDef
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
§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)
clone_to_uninit)