#[repr(C)]pub struct b3ParallelJointDef {
pub base: b3JointDef,
pub hertz: f32,
pub dampingRatio: f32,
pub maxTorque: f32,
}Expand description
Parallel joint definition. Constrains the angle between axis z in body A and axis z in body B using a spring. Useful to keep a body upright. @ingroup parallel_joint
Fields§
§base: b3JointDefBase joint definition
hertz: f32The spring stiffness Hertz, cycles per second
dampingRatio: f32The spring damping ratio, non-dimensional
maxTorque: f32The maximum spring torque, typically in newton-meters.
Trait Implementations§
Source§impl Clone for b3ParallelJointDef
impl Clone for b3ParallelJointDef
Source§fn clone(&self) -> b3ParallelJointDef
fn clone(&self) -> b3ParallelJointDef
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 b3ParallelJointDef
Auto Trait Implementations§
impl !Send for b3ParallelJointDef
impl !Sync for b3ParallelJointDef
impl Freeze for b3ParallelJointDef
impl RefUnwindSafe for b3ParallelJointDef
impl Unpin for b3ParallelJointDef
impl UnsafeUnpin for b3ParallelJointDef
impl UnwindSafe for b3ParallelJointDef
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