[−][src]Struct oxygengine_physics_2d::prelude::MultibodyDesc
A multibody builder.
Implementations
impl<N> MultibodyDesc<N> where
N: RealField,
[src]
N: RealField,
pub fn new<J>(joint: J) -> MultibodyDesc<N> where
J: Joint<N>,
[src]
J: Joint<N>,
Initialize a multibody builder with one link with one joint.
pub fn add_child<J>(&mut self, joint: J) -> &mut MultibodyDesc<N> where
J: Joint<N>,
[src]
J: Joint<N>,
Add a children 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]
J: Joint<N>,
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]
&mut self,
angular_inertia: N
) -> &mut MultibodyDesc<N>
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]
self,
parent_shift: Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
) -> MultibodyDesc<N>
pub fn set_parent_shift(
&mut self,
parent_shift: Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
) -> &mut MultibodyDesc<N>
[src]
&mut self,
parent_shift: Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
) -> &mut MultibodyDesc<N>
pub fn body_shift(
self,
body_shift: Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
) -> MultibodyDesc<N>
[src]
self,
body_shift: Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
) -> MultibodyDesc<N>
pub fn set_body_shift(
&mut self,
body_shift: Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
) -> &mut MultibodyDesc<N>
[src]
&mut self,
body_shift: Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
) -> &mut MultibodyDesc<N>
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]
&mut self,
local_inertia: Inertia2<N>
) -> &mut MultibodyDesc<N>
pub fn local_center_of_mass(
self,
local_center_of_mass: Point<N, U2>
) -> MultibodyDesc<N>
[src]
self,
local_center_of_mass: Point<N, U2>
) -> MultibodyDesc<N>
pub fn set_local_center_of_mass(
&mut self,
local_center_of_mass: Point<N, U2>
) -> &mut MultibodyDesc<N>
[src]
&mut self,
local_center_of_mass: Point<N, U2>
) -> &mut MultibodyDesc<N>
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]
&self
) -> &Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
pub fn get_body_shift(
&self
) -> &Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
[src]
&self
) -> &Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
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]
&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>
impl<N> Send for MultibodyDesc<N> where
N: Scalar,
N: Scalar,
impl<N> Sync for MultibodyDesc<N> where
N: Scalar,
N: Scalar,
impl<N> Unpin for MultibodyDesc<N> where
N: Scalar + Unpin,
N: Scalar + Unpin,
impl<N> !UnwindSafe for MultibodyDesc<N>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: Any,
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>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
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.
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.
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>,