setFixedRotation method

void setFixedRotation (bool flag)

Set this body to have fixed rotation. This causes the mass to be reset.

@param flag

Implementation

void setFixedRotation(bool flag) {
  if (flag) {
    _flags |= FIXED_ROTATION_FLAG;
  } else {
    _flags &= ~FIXED_ROTATION_FLAG;
  }

  resetMassData();
}