setFixedRotation method
Set this body to have fixed rotation. This causes the mass to be reset.
Implementation
void setFixedRotation(bool flag) {
if (flag) {
flags |= fixedRotationFlag;
} else {
flags &= ~fixedRotationFlag;
}
resetMassData();
}