[−][src]Struct nphysics2d::object::MultibodyDesc
A multibody builder.
Implementations
impl<N: RealField> MultibodyDesc<N>
[src]
pub fn new<J: Joint<N>>(joint: J) -> Self
[src]
Initialize a multibody builder with one link with one joint.
pub fn from_boxed_joint(joint: Box<dyn Joint<N>>) -> Self
[src]
Initializes a multibody builder from a joint trait object.
pub fn children(&self) -> &[MultibodyDesc<N>]
[src]
Returns the children of this multibody.
pub fn children_mut(&mut self) -> &mut [MultibodyDesc<N>]
[src]
Returns a mutable list of children of this multibody.
pub fn add_child<J: Joint<N>>(&mut self, joint: J) -> &mut MultibodyDesc<N>
[src]
Add a child link to the multibody link represented by self
.
pub fn add_child_desc(&mut self, child: MultibodyDesc<N>) -> &mut Self
[src]
Adds the description as a child link to the multibody link represented by self
.
pub fn set_joint<J: Joint<N>>(&mut self, joint: J) -> &mut Self
[src]
Sets the joint of this multibody builder.
pub fn angular_inertia(self, angular_inertia: N) -> Self
[src]
pub fn set_angular_inertia(&mut self, angular_inertia: N) -> &mut Self
[src]
pub fn mass(self, mass: N) -> Self
[src]
pub fn set_mass(&mut self, mass: N) -> &mut Self
[src]
pub fn name(self, name: String) -> Self
[src]
pub fn set_name(&mut self, name: String) -> &mut Self
[src]
pub fn parent_shift(self, parent_shift: Vector<N>) -> Self
[src]
pub fn set_parent_shift(&mut self, parent_shift: Vector<N>) -> &mut Self
[src]
pub fn body_shift(self, body_shift: Vector<N>) -> Self
[src]
pub fn set_body_shift(&mut self, body_shift: Vector<N>) -> &mut Self
[src]
pub fn velocity(self, velocity: Velocity<N>) -> Self
[src]
pub fn set_velocity(&mut self, velocity: Velocity<N>) -> &mut Self
[src]
pub fn local_inertia(self, local_inertia: Inertia<N>) -> Self
[src]
pub fn set_local_inertia(&mut self, local_inertia: Inertia<N>) -> &mut Self
[src]
pub fn local_center_of_mass(self, local_center_of_mass: Point<N>) -> Self
[src]
pub fn set_local_center_of_mass(
&mut self,
local_center_of_mass: Point<N>
) -> &mut Self
[src]
&mut self,
local_center_of_mass: Point<N>
) -> &mut Self
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) -> &Vector<N>
[src]
pub fn get_body_shift(&self) -> &Vector<N>
[src]
pub fn get_velocity(&self) -> &Velocity<N>
[src]
pub fn get_local_inertia(&self) -> &Inertia<N>
[src]
pub fn get_local_center_of_mass(&self) -> &Point<N>
[src]
pub fn build(&self) -> Multibody<N>
[src]
Build the multibody described by this factory.
pub fn build_with_parent<'m>(
&self,
multibody: &'m mut Multibody<N>,
parent_id: usize
) -> &'m mut MultibodyLink<N>
[src]
&self,
multibody: &'m mut Multibody<N>,
parent_id: usize
) -> &'m mut MultibodyLink<N>
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>
[src]
impl<N> Send for MultibodyDesc<N> where
N: Scalar,
[src]
N: Scalar,
impl<N> Sync for MultibodyDesc<N> where
N: Scalar,
[src]
N: Scalar,
impl<N> Unpin for MultibodyDesc<N> where
N: Scalar + Unpin,
[src]
N: Scalar + Unpin,
impl<N> !UnwindSafe for MultibodyDesc<N>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
[src]
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,