pub struct Inertia {
pub diag_inertia: Vec3,
pub inertia_rotation: Option<UnitQuat>,
pub center_of_mass: Option<Vec3>,
}Expand description
The inertia properties of a shape.
Fields§
§diag_inertia: Vec3The mass normalized diagonal inerita with principal axis pass through the center of mass.
inertia_rotation: Option<UnitQuat>The rotation from principal axis space to shape space. None if no rotation is needed.
center_of_mass: Option<Vec3>The center of mass in shape space. None if the center of mass is at the origin.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Inertia
impl RefUnwindSafe for Inertia
impl Send for Inertia
impl Sync for Inertia
impl Unpin for Inertia
impl UnwindSafe for Inertia
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.