getMassData method
Get the mass data of the body. The rotational inertia is relative to the center of mass.
Implementation
MassData getMassData() {
return MassData()
..mass = _mass
..I = inertia + getInertia()
..center.x = sweep.localCenter.x
..center.y = sweep.localCenter.y;
}