|
pTymN, the OP said that he already does this (probably within the editor, since there's no reason to use a separate tool).
His problem (as I understand it) is that when he loads a pre-settled level the dynamic objects all penetrate slightly and then everything pops back out of the ground.
My guess would be that Box2D stores state regarding settled bodies and their points of contact, and this state is lost when the level is re-loaded and the bodies are re-created.
The solution I offered was simply to quickly "re-settle" the level by running the simulation "behind the scenes" at the last stage of loading, before presenting it to the user.
|