wakeUp method

void wakeUp()

Wake the body up.

Implementation

void wakeUp(){
  final prevState = sleepState;
  sleepState = BodySleepStates.awake;
  wakeUpAfterNarrowphase = false;
  if (prevState == BodySleepStates.sleeping) {
    dispatchEvent(Body.wakeupEvent);
  }
}