#[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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more