Static bodies.

I have about 50 static bodies in my game. My static bodies are touching one another always, and want to know if they are awake, or always asleep by default. Are they awake and hogging processor power?

Thanks! 🙂
I think they are "asleep" by default, because even dynamic bodies have an asleep status. You can still try running a test with 50k bodies instead of 50, you'll see if it uses processor power 🙂
There's not asleep, but there are other optimizations ensuring this doesn't do much work.
I think...

var doSleep:Boolean = true;
m_world = new b2World(gravity,doSleep);

if you set true ,so ,all bodys can sleep.
if you set false, so,all bodys can awake.and can't sleep.

Original thread: https://box2d.org/forum/viewtopic.php?t=4690