#[repr(C)]pub struct MassData {
pub mass: f32,
pub center: Vec2,
pub rotational_inertia: f32,
}Expand description
Mass properties (mass, center, inertia) used by Box2D.
Fields§
§mass: f32§center: Vec2§rotational_inertia: f32Implementations§
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