setFixedRotation method

void setFixedRotation(
  1. bool fixedRotation
)

Should this body be prevented from rotating? Useful for characters.

Implementation

void setFixedRotation(bool fixedRotation) {
  this.fixedRotation = fixedRotation;
}