MassData

constructor(mass: Float, center: Vec2, rotationalInertia: Float)

Parameters

mass

The mass of the body, usually in kilograms

center

The position of the center of mass in local coordinates

rotationalInertia

The rotational inertia of the body about the local origin, usually in kg*m^2