isAllowSleep method

bool isAllowSleep()

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

Implementation

bool isAllowSleep() {
  return allowSleep;
}