#[repr(C)]pub struct b3MassData {
pub mass: f32,
pub center: b3Vec3,
pub inertia: b3Matrix3,
}Expand description
This holds the mass data computed for a shape.
Fields§
§mass: f32The shape mass
center: b3Vec3The local center of mass position.
inertia: b3Matrix3The inertia tensor about the shape center of mass.
Trait Implementations§
Source§impl Clone for b3MassData
impl Clone for b3MassData
Source§fn clone(&self) -> b3MassData
fn clone(&self) -> b3MassData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for b3MassData
Auto Trait Implementations§
impl Freeze for b3MassData
impl RefUnwindSafe for b3MassData
impl Send for b3MassData
impl Sync for b3MassData
impl Unpin for b3MassData
impl UnsafeUnpin for b3MassData
impl UnwindSafe for b3MassData
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