Box2d increasing maximum number of bodies

BlitzMax Forums/Brucey's Modules/Box2d increasing maximum number of bodies

Duckstab[o](Posted 2011) [#1]
Ive got a few concepts running atm but the main limitation im hitting it the maximum proxy or body/shape limits

Is there a way to extend or increase the allowed amount

I need around 4000 boxes per level and the all start static and need to be both visable and able to collide with.

is this possible


Volker(Posted 2011) [#2]
From the box2d forum:
"You can allow for more shapes by increasing b2_maxProxies in b2Settings.h."
It's in Source\Common.
You need to recompile the mod.


Duckstab[o](Posted 2011) [#3]
thanks Volker got that working :)


Russell(Posted 2011) [#4]
I'd be sure to test the resulting program on lesser hardware (I see you're on a quadcore 3.2Ghz...), as I'm sure the 4000 limit is there for a reason. It may become intolerably slow on, say, a dualcore 2Ghz. But who knows?

Russell