setFixedRotation method

void setFixedRotation(
  1. bool flag
)

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();
}