MjBodyModelViewMut

Struct MjBodyModelViewMut 

Source
pub struct MjBodyModelViewMut<'d> {
Show 28 fields pub parentid: PointerViewMut<'d, i32>, pub rootid: PointerViewMut<'d, i32>, pub weldid: PointerViewMut<'d, i32>, pub mocapid: PointerViewMut<'d, i32>, pub jntnum: PointerViewMut<'d, i32>, pub jntadr: PointerViewMut<'d, i32>, pub dofnum: PointerViewMut<'d, i32>, pub dofadr: PointerViewMut<'d, i32>, pub treeid: PointerViewMut<'d, i32>, pub geomnum: PointerViewMut<'d, i32>, pub geomadr: PointerViewMut<'d, i32>, pub simple: PointerViewMut<'d, MjtByte>, pub sameframe: PointerViewMut<'d, MjtSameFrame>, pub pos: PointerViewMut<'d, MjtNum>, pub quat: PointerViewMut<'d, MjtNum>, pub ipos: PointerViewMut<'d, MjtNum>, pub iquat: PointerViewMut<'d, MjtNum>, pub mass: PointerViewMut<'d, MjtNum>, pub subtreemass: PointerViewMut<'d, MjtNum>, pub inertia: PointerViewMut<'d, MjtNum>, pub invweight0: PointerViewMut<'d, MjtNum>, pub gravcomp: PointerViewMut<'d, MjtNum>, pub margin: PointerViewMut<'d, MjtNum>, pub plugin: PointerViewMut<'d, i32>, pub contype: PointerViewMut<'d, i32>, pub conaffinity: PointerViewMut<'d, i32>, pub bvhadr: PointerViewMut<'d, i32>, pub bvhnum: PointerViewMut<'d, i32>,
}
Expand description

A mutable view to body variables of MjModel.

Fields§

§parentid: PointerViewMut<'d, i32>§rootid: PointerViewMut<'d, i32>§weldid: PointerViewMut<'d, i32>§mocapid: PointerViewMut<'d, i32>§jntnum: PointerViewMut<'d, i32>§jntadr: PointerViewMut<'d, i32>§dofnum: PointerViewMut<'d, i32>§dofadr: PointerViewMut<'d, i32>§treeid: PointerViewMut<'d, i32>§geomnum: PointerViewMut<'d, i32>§geomadr: PointerViewMut<'d, i32>§simple: PointerViewMut<'d, MjtByte>§sameframe: PointerViewMut<'d, MjtSameFrame>§pos: PointerViewMut<'d, MjtNum>§quat: PointerViewMut<'d, MjtNum>§ipos: PointerViewMut<'d, MjtNum>§iquat: PointerViewMut<'d, MjtNum>§mass: PointerViewMut<'d, MjtNum>§subtreemass: PointerViewMut<'d, MjtNum>§inertia: PointerViewMut<'d, MjtNum>§invweight0: PointerViewMut<'d, MjtNum>§gravcomp: PointerViewMut<'d, MjtNum>§margin: PointerViewMut<'d, MjtNum>§plugin: PointerViewMut<'d, i32>§contype: PointerViewMut<'d, i32>§conaffinity: PointerViewMut<'d, i32>§bvhadr: PointerViewMut<'d, i32>§bvhnum: PointerViewMut<'d, i32>

Implementations§

Source§

impl MjBodyModelViewMut<'_>

Source

pub fn zero(&mut self)

Resets the internal variables to 0.0.

Auto Trait Implementations§

§

impl<'d> Freeze for MjBodyModelViewMut<'d>

§

impl<'d> RefUnwindSafe for MjBodyModelViewMut<'d>

§

impl<'d> !Send for MjBodyModelViewMut<'d>

§

impl<'d> !Sync for MjBodyModelViewMut<'d>

§

impl<'d> Unpin for MjBodyModelViewMut<'d>

§

impl<'d> !UnwindSafe for MjBodyModelViewMut<'d>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.