pub struct WeldJoint { /* private fields */ }Expand description
WELJ/WLJ2/WLJ3 — a soft rigid connection. Zero frequency means the axis is solved as a hard constraint.
Implementations§
Source§impl WeldJoint
impl WeldJoint
Sourcepub fn frame_a(&self) -> Ref<'_, PhysicsFrame>
pub fn frame_a(&self) -> Ref<'_, PhysicsFrame>
Borrows the field in place — no copy, no allocation.
pub fn frame_a_mut(&mut self) -> RefMut<'_, PhysicsFrame>
Sourcepub fn frame_b(&self) -> Ref<'_, PhysicsFrame>
pub fn frame_b(&self) -> Ref<'_, PhysicsFrame>
Borrows the field in place — no copy, no allocation.
pub fn frame_b_mut(&mut self) -> RefMut<'_, PhysicsFrame>
pub fn angular_frequency_hz(&self) -> f32
pub fn set_angular_frequency_hz(&mut self, value: f32)
pub fn angular_damping_ratio(&self) -> f32
pub fn set_angular_damping_ratio(&mut self, value: f32)
Sourcepub fn linear_frequency_hz(&self) -> f32
pub fn linear_frequency_hz(&self) -> f32
WLJ2+
pub fn set_linear_frequency_hz(&mut self, value: f32)
Sourcepub fn linear_damping_ratio(&self) -> f32
pub fn linear_damping_ratio(&self) -> f32
WLJ2+
pub fn set_linear_damping_ratio(&mut self, value: f32)
Sourcepub fn unknown_70(&self) -> f32
pub fn unknown_70(&self) -> f32
WLJ3+. Zero in 265 of 274 weld joints.
pub fn set_unknown_70(&mut self, value: f32)
Trait Implementations§
impl Send for WeldJoint
Auto Trait Implementations§
impl !Sync for WeldJoint
impl Freeze for WeldJoint
impl RefUnwindSafe for WeldJoint
impl Unpin for WeldJoint
impl UnsafeUnpin for WeldJoint
impl UnwindSafe for WeldJoint
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