setAllowSleep method

void setAllowSleep(
  1. bool allowSleep
)

Set this flag to false if this body should never fall asleep. Note that this increases CPU usage.

Implementation

void setAllowSleep(bool allowSleep) {
  this.allowSleep = allowSleep;
}