#[repr(C)]pub struct b3WeldJointDef {
pub base: b3JointDef,
pub linearHertz: f32,
pub angularHertz: f32,
pub linearDampingRatio: f32,
pub angularDampingRatio: f32,
}Expand description
Weld joint definition Connects two bodies together rigidly. This constraint provides springs to mimic soft-body simulation. @note The approximate solver in Box3D cannot hold many bodies together rigidly @ingroup weld_joint
Fields§
§base: b3JointDefBase joint definition
linearHertz: f32Linear stiffness expressed as Hertz (cycles per second). Use zero for maximum stiffness.
angularHertz: f32Angular stiffness as Hertz (cycles per second). Use zero for maximum stiffness.
linearDampingRatio: f32Linear damping ratio, non-dimensional. Use 1 for critical damping.
angularDampingRatio: f32Linear damping ratio, non-dimensional. Use 1 for critical damping.
Trait Implementations§
Source§impl Clone for b3WeldJointDef
impl Clone for b3WeldJointDef
Source§fn clone(&self) -> b3WeldJointDef
fn clone(&self) -> b3WeldJointDef
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 b3WeldJointDef
Auto Trait Implementations§
impl !Send for b3WeldJointDef
impl !Sync for b3WeldJointDef
impl Freeze for b3WeldJointDef
impl RefUnwindSafe for b3WeldJointDef
impl Unpin for b3WeldJointDef
impl UnsafeUnpin for b3WeldJointDef
impl UnwindSafe for b3WeldJointDef
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