pub struct RevoluteJoint { /* private fields */ }Expand description
REVJ/REV2 — a hinge, version 2+.
Implementations§
Source§impl RevoluteJoint
impl RevoluteJoint
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_angle(&self) -> f32
pub fn set_lower_angle(&mut self, value: f32)
pub fn upper_angle(&self) -> f32
pub fn set_upper_angle(&mut self, value: f32)
pub fn max_motor_torque(&self) -> f32
pub fn set_max_motor_torque(&mut self, value: f32)
Sourcepub fn motor_mode(&self) -> u32
pub fn motor_mode(&self) -> u32
1: position mode (frequency > 0), 2: velocity mode.
pub fn set_motor_mode(&mut self, value: u32)
Sourcepub fn motor_frequency_hz(&self) -> f32
pub fn motor_frequency_hz(&self) -> f32
REV2
pub fn set_motor_frequency_hz(&mut self, value: f32)
Sourcepub fn motor_damping_ratio(&self) -> f32
pub fn motor_damping_ratio(&self) -> f32
REV2
pub fn set_motor_damping_ratio(&mut self, value: f32)
Trait Implementations§
Source§impl Debug for RevoluteJoint
impl Debug for RevoluteJoint
Source§impl Default for RevoluteJoint
impl Default for RevoluteJoint
Source§impl Drop for RevoluteJoint
impl Drop for RevoluteJoint
impl Send for RevoluteJoint
Auto Trait Implementations§
impl !Sync for RevoluteJoint
impl Freeze for RevoluteJoint
impl RefUnwindSafe for RevoluteJoint
impl Unpin for RevoluteJoint
impl UnsafeUnpin for RevoluteJoint
impl UnwindSafe for RevoluteJoint
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