Physics.P2#sleepMode

sleepMode : number

How to deactivate bodies during simulation. Possible modes are: World.NO_SLEEPING, World.BODY_SLEEPING and World.ISLAND_SLEEPING.
If sleeping is enabled, you might need to wake up the bodies if they fall asleep when they shouldn't. If you want to enable sleeping in the world, but want to disable it for a particular body, see Body.allowSleep.

Source code: physics/p2/World.js (Line 2014)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.