pub struct Body {
pub name: String,
pub origin_rot: M3,
pub origin_pos: V3,
pub axis: V3,
pub prismatic: bool,
pub inertial: Inertial,
pub limits: Option<(f64, f64)>,
}Expand description
One moving joint and the body it carries.
Fields§
§name: String§origin_rot: M3Where the joint sits in the frame of the body before it, at zero joint position.
origin_pos: V3§axis: V3Unit axis in the joint’s frame.
prismatic: bool§inertial: Inertial§limits: Option<(f64, f64)>The joint’s limits from the file (rad or m); None for a continuous joint.
Trait Implementations§
impl StructuralPartialEq for Body
Auto Trait Implementations§
impl Freeze for Body
impl RefUnwindSafe for Body
impl Send for Body
impl Sync for Body
impl Unpin for Body
impl UnsafeUnpin for Body
impl UnwindSafe for Body
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