pub struct PyJoint {Show 14 fields
pub id: u32,
pub joint_type: PyJointType,
pub body_a: u32,
pub body_b: u32,
pub anchor_a: [f64; 3],
pub anchor_b: [f64; 3],
pub axis: [f64; 3],
pub lower_limit: f64,
pub upper_limit: f64,
pub motor_speed: f64,
pub motor_max_force: f64,
pub motor_enabled: bool,
pub reaction_force: [f64; 3],
pub reaction_torque: [f64; 3],
}Expand description
A joint connecting two bodies.
Fields§
§id: u32Joint handle.
joint_type: PyJointTypeJoint type.
body_a: u32Body A handle.
body_b: u32Body B handle.
anchor_a: [f64; 3]Anchor on body A in local space.
anchor_b: [f64; 3]Anchor on body B in local space.
axis: [f64; 3]Axis for hinge/slider (body A local space).
lower_limit: f64Lower limit (angle in radians for hinge, distance for slider).
upper_limit: f64Upper limit.
motor_speed: f64Motor target speed.
motor_max_force: f64Motor maximum force/torque.
motor_enabled: boolWhether the motor is enabled.
reaction_force: [f64; 3]Last computed force on body A [fx, fy, fz].
reaction_torque: [f64; 3]Last computed torque on body A [tx, ty, tz].
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PyJoint
impl<'de> Deserialize<'de> for PyJoint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PyJoint
impl RefUnwindSafe for PyJoint
impl Send for PyJoint
impl Sync for PyJoint
impl Unpin for PyJoint
impl UnsafeUnpin for PyJoint
impl UnwindSafe for PyJoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.