pub struct MassData {
pub mass: f32,
pub center: Vec3,
pub inertia: Matrix3,
}Expand description
This holds the mass data computed for a shape. (b3MassData)
Fields§
§mass: f32The shape mass
center: Vec3The local center of mass position.
inertia: Matrix3The inertia tensor about the shape center of mass.
Trait Implementations§
impl Copy for MassData
impl StructuralPartialEq for MassData
Auto Trait Implementations§
impl Freeze for MassData
impl RefUnwindSafe for MassData
impl Send for MassData
impl Sync for MassData
impl Unpin for MassData
impl UnsafeUnpin for MassData
impl UnwindSafe for MassData
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