|
Store the b2AABB you created your b2World with, and test the shapes you want to create to make sure they are inside it.
Or better, create the AABB with a healthy margin of error, and have it surround every bit of space that you could possibly want to use. You don't gain much if anything by keeping the world AABB tight, the main thing is just that it shouldn't be too massive. I think Erin said anything up to a few km should be fine, and even if you go beyond that, the broadphase might just go a little slower.
|