Struct RevoluteMotorJoint
#[repr(C)]pub struct RevoluteMotorJoint {
pub body_a: u32,
pub body_b: u32,
pub local_anchor_a: [f32; 3],
pub local_anchor_b: [f32; 3],
pub local_axis: [f32; 3],
pub min_angle_rad: f32,
pub max_angle_rad: f32,
pub motor_target_vel: f32,
pub max_motor_torque: f32,
pub compliance: f32,
}Expand description
1-DOF revolute hinge joint with angular limits and optional motor drive.
Fields§
§body_a: u32§body_b: u32§local_anchor_a: [f32; 3]§local_anchor_b: [f32; 3]§local_axis: [f32; 3]Local hinge axis on both bodies (unit vector).
min_angle_rad: f32Minimum hinge angle in radians.
max_angle_rad: f32Maximum hinge angle in radians.
motor_target_vel: f32Target angular velocity in rad/s.
max_motor_torque: f32Maximum motor torque in N·m.
compliance: f32Trait Implementations§
§impl Clone for RevoluteMotorJoint
impl Clone for RevoluteMotorJoint
§fn clone(&self) -> RevoluteMotorJoint
fn clone(&self) -> RevoluteMotorJoint
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 RevoluteMotorJoint
§impl Debug for RevoluteMotorJoint
impl Debug for RevoluteMotorJoint
§impl PartialEq for RevoluteMotorJoint
impl PartialEq for RevoluteMotorJoint
impl StructuralPartialEq for RevoluteMotorJoint
Auto Trait Implementations§
impl Freeze for RevoluteMotorJoint
impl RefUnwindSafe for RevoluteMotorJoint
impl Send for RevoluteMotorJoint
impl Sync for RevoluteMotorJoint
impl Unpin for RevoluteMotorJoint
impl UnsafeUnpin for RevoluteMotorJoint
impl UnwindSafe for RevoluteMotorJoint
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