pub struct ShoulderJoint { /* private fields */ }Expand description
SHOJ/SHJ2 — a twist-and-cone joint, the one that chains cloth.
Implementations§
Source§impl ShoulderJoint
impl ShoulderJoint
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 lower_twist_angle(&self) -> f32
pub fn set_lower_twist_angle(&mut self, value: f32)
pub fn upper_twist_angle(&self) -> f32
pub fn set_upper_twist_angle(&mut self, value: f32)
Sourcepub fn cone_angle(&self) -> f32
pub fn cone_angle(&self) -> f32
Degrees: the corpus holds 20, 35, 45 and 60, while dmShoulderJoint clamps its own cone to [10°, 170°] expressed in radians — so the loader converts on the way in.
pub fn set_cone_angle(&mut self, value: f32)
Sourcepub fn max_motor_torque(&self) -> f32
pub fn max_motor_torque(&self) -> f32
version 2+
pub fn set_max_motor_torque(&mut self, value: f32)
Sourcepub fn motor_mode(&self) -> u32
pub fn motor_mode(&self) -> u32
version 2+
pub fn set_motor_mode(&mut self, value: u32)
Sourcepub fn motor_frequency_hz(&self) -> f32
pub fn motor_frequency_hz(&self) -> f32
SHJ2
pub fn set_motor_frequency_hz(&mut self, value: f32)
Sourcepub fn motor_damping_ratio(&self) -> f32
pub fn motor_damping_ratio(&self) -> f32
SHJ2
pub fn set_motor_damping_ratio(&mut self, value: f32)
Trait Implementations§
Source§impl Debug for ShoulderJoint
impl Debug for ShoulderJoint
Source§impl Default for ShoulderJoint
impl Default for ShoulderJoint
Source§impl Drop for ShoulderJoint
impl Drop for ShoulderJoint
impl Send for ShoulderJoint
Auto Trait Implementations§
impl !Sync for ShoulderJoint
impl Freeze for ShoulderJoint
impl RefUnwindSafe for ShoulderJoint
impl Unpin for ShoulderJoint
impl UnsafeUnpin for ShoulderJoint
impl UnwindSafe for ShoulderJoint
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