pub struct MassData {
pub mass: f32,
pub center: Vec2,
pub rotational_inertia: f32,
}Expand description
This holds the mass data computed for a shape. (b2MassData)
Fields§
§mass: f32The mass of the shape, usually in kilograms.
center: Vec2The position of the shape’s centroid relative to the shape’s origin.
rotational_inertia: f32The rotational inertia of the shape about the shape center.
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