Maximum number b2Bodies

Hi,
Just like to say the engine is really good and pretty simple to intergrate into my project. Thanks!

I was wondering if there is a limit to how many bodies the engine can handle?
It seems to assert false at the point below when it gets to around 510 bodies. What is the reason for this?
Code:
uint16 b2BroadPhase::CreateProxy(const b2AABB& aabb, int16 groupIndex, uint16 categoryBits, uint16 maskBits, void* userData)
{
    b2Assert(m_freeProxy != b2_nullProxy);
    ...
}
This has more to do with the number of shapes in the broad-phase than the number of bodies.

You can increase the capacity in b2Settings.h: b2_maxProxies (default 512).

Make sure you use a power of two: 1024, 2048, etc.

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