#[repr(C)]pub struct b2WeldJointDef {
pub base: b2JointDef,
pub linearHertz: f32,
pub angularHertz: f32,
pub linearDampingRatio: f32,
pub angularDampingRatio: f32,
pub internalValue: c_int,
}Expand description
Weld joint definition Connects two bodies together rigidly. This constraint provides springs to mimic soft-body simulation. @note The approximate solver in Box2D cannot hold many bodies together rigidly @ingroup weld_joint
Fields§
§base: b2JointDefBase 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.
internalValue: c_intUsed internally to detect a valid definition. DO NOT SET.
Trait Implementations§
Source§impl Clone for b2WeldJointDef
impl Clone for b2WeldJointDef
Source§fn clone(&self) -> b2WeldJointDef
fn clone(&self) -> b2WeldJointDef
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for b2WeldJointDef
impl Debug for b2WeldJointDef
impl Copy for b2WeldJointDef
Auto Trait Implementations§
impl Freeze for b2WeldJointDef
impl RefUnwindSafe for b2WeldJointDef
impl !Send for b2WeldJointDef
impl !Sync for b2WeldJointDef
impl Unpin for b2WeldJointDef
impl UnwindSafe for b2WeldJointDef
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
Mutably borrows from an owned value. Read more
§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)
🔬This is a nightly-only experimental API. (
clone_to_uninit)