#[repr(C)]pub struct b3SphericalJointDef {Show 13 fields
pub base: b3JointDef,
pub enableSpring: bool,
pub hertz: f32,
pub dampingRatio: f32,
pub targetRotation: b3Quat,
pub enableConeLimit: bool,
pub coneAngle: f32,
pub enableTwistLimit: bool,
pub lowerTwistAngle: f32,
pub upperTwistAngle: f32,
pub enableMotor: bool,
pub maxMotorTorque: f32,
pub motorVelocity: b3Vec3,
}Expand description
Spherical joint definition. A point on body B is fixed to a point on body A. Allows rotation about the shared point. @ingroup spherical_joint
Fields§
§base: b3JointDefBase joint definition
enableSpring: boolEnable a rotational spring that attempts to align the two joint frames.
hertz: f32The spring stiffness Hertz, cycles per second. This may be clamped internally according to the time step to maintain stability. Non-negative number.
dampingRatio: f32The spring damping ratio, non-dimensional. Non-negative number.
targetRotation: b3QuatTarget spring rotation, joint frame B relative to joint frame A.
enableConeLimit: boolA flag to enable the cone limit. The cone is centered on the frameA z-axis.
coneAngle: f32The angle for the cone limit in radians. Valid range is [0, pi]
enableTwistLimit: boolA flag to enable the twist limit. The twist is centered on the frameB z-axis.
lowerTwistAngle: f32The angle for the lower twist limit in radians. Minimum of -0.99*pi radians.
upperTwistAngle: f32The angle for the upper twist 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. Non-negative number.
motorVelocity: b3Vec3The desired motor angular velocity in radians per second.
Trait Implementations§
Source§impl Clone for b3SphericalJointDef
impl Clone for b3SphericalJointDef
Source§fn clone(&self) -> b3SphericalJointDef
fn clone(&self) -> b3SphericalJointDef
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more