sleep method
void
sleep()
Force body sleep
Implementation
void sleep(){
sleepState = BodySleepStates.sleeping;
velocity.set(0, 0, 0);
angularVelocity.set(0, 0, 0);
wakeUpAfterNarrowphase = false;
}
Force body sleep
void sleep(){
sleepState = BodySleepStates.sleeping;
velocity.set(0, 0, 0);
angularVelocity.set(0, 0, 0);
wakeUpAfterNarrowphase = false;
}