getMassData method

void getMassData(
  1. MassData massData
)

Get the mass data for this fixture. The mass data is based on the density and the shape. The rotational inertia is about the shape's origin.

Implementation

void getMassData(MassData massData) {
  shape.computeMass(massData, _density);
}