[][src]Struct oxygengine_physics_2d::prelude::MultibodyDesc

pub struct MultibodyDesc<N> where
    N: RealField
{ /* fields omitted */ }

A multibody builder.

Implementations

impl<N> MultibodyDesc<N> where
    N: RealField
[src]

pub fn new<J>(joint: J) -> MultibodyDesc<N> where
    J: Joint<N>, 
[src]

Initialize a multibody builder with one link with one joint.

pub fn from_boxed_joint(joint: Box<dyn Joint<N> + 'static>) -> MultibodyDesc<N>[src]

Initializes a multibody builder from a joint trait object.

pub fn children(&self) -> &[MultibodyDesc<N>]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
[src]

Returns the children of this multibody.

pub fn children_mut(&mut self) -> &mut [MultibodyDesc<N>]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
[src]

Returns a mutable list of children of this multibody.

pub fn add_child<J>(&mut self, joint: J) -> &mut MultibodyDesc<N> where
    J: Joint<N>, 
[src]

Add a child link to the multibody link represented by self.

pub fn add_child_desc(
    &mut self,
    child: MultibodyDesc<N>
) -> &mut MultibodyDesc<N>
[src]

Adds the description as a child link to the multibody link represented by self.

pub fn set_joint<J>(&mut self, joint: J) -> &mut MultibodyDesc<N> where
    J: Joint<N>, 
[src]

Sets the joint of this multibody builder.

pub fn angular_inertia(self, angular_inertia: N) -> MultibodyDesc<N>[src]

pub fn set_angular_inertia(
    &mut self,
    angular_inertia: N
) -> &mut MultibodyDesc<N>
[src]

pub fn mass(self, mass: N) -> MultibodyDesc<N>[src]

pub fn set_mass(&mut self, mass: N) -> &mut MultibodyDesc<N>[src]

pub fn name(self, name: String) -> MultibodyDesc<N>[src]

pub fn set_name(&mut self, name: String) -> &mut MultibodyDesc<N>[src]

pub fn parent_shift(
    self,
    parent_shift: Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
) -> MultibodyDesc<N>
[src]

pub fn set_parent_shift(
    &mut self,
    parent_shift: Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
) -> &mut MultibodyDesc<N>
[src]

pub fn body_shift(
    self,
    body_shift: Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
) -> MultibodyDesc<N>
[src]

pub fn set_body_shift(
    &mut self,
    body_shift: Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
) -> &mut MultibodyDesc<N>
[src]

pub fn velocity(self, velocity: Velocity2<N>) -> MultibodyDesc<N>[src]

pub fn set_velocity(&mut self, velocity: Velocity2<N>) -> &mut MultibodyDesc<N>[src]

pub fn local_inertia(self, local_inertia: Inertia2<N>) -> MultibodyDesc<N>[src]

pub fn set_local_inertia(
    &mut self,
    local_inertia: Inertia2<N>
) -> &mut MultibodyDesc<N>
[src]

pub fn local_center_of_mass(
    self,
    local_center_of_mass: Point<N, U2>
) -> MultibodyDesc<N>
[src]

pub fn set_local_center_of_mass(
    &mut self,
    local_center_of_mass: Point<N, U2>
) -> &mut MultibodyDesc<N>
[src]

pub fn get_angular_inertia(&self) -> N[src]

pub fn get_mass(&self) -> N[src]

pub fn get_name(&self) -> &str[src]

pub fn get_parent_shift(
    &self
) -> &Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
[src]

pub fn get_body_shift(
    &self
) -> &Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
[src]

pub fn get_velocity(&self) -> &Velocity2<N>[src]

pub fn get_local_inertia(&self) -> &Inertia2<N>[src]

pub fn get_local_center_of_mass(&self) -> &Point<N, U2>[src]

pub fn build(&self) -> Multibody<N>[src]

Build the multibody described by this factory.

pub fn build_with_parent(
    &self,
    multibody: &'m mut Multibody<N>,
    parent_id: usize
) -> &'m mut MultibodyLink<N>
[src]

Build the multibody links described by this factory and attach them to the parent_id-th link of the given multibody.

Auto Trait Implementations

impl<N> !RefUnwindSafe for MultibodyDesc<N>

impl<N> Send for MultibodyDesc<N> where
    N: Scalar

impl<N> Sync for MultibodyDesc<N> where
    N: Scalar

impl<N> Unpin for MultibodyDesc<N> where
    N: Scalar + Unpin

impl<N> !UnwindSafe for MultibodyDesc<N>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Any, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,