Maximum Shapes in a single body?

Does box2d have a limit to the number of shapes added to a single body?
I'm using the as3 port if that makes any difference,

thanks for your time

freshcut
i do't think there is any limit, because in my platformer game, i have a terrain composed of a lot of shapes, i have never had any problem 🙂
cheers for the reply, i haven't had any problems with 100's of shapes in a static body, but making dynamic bodies it seems to get stuck after about 80 shapes , I know that's probably more than most people would ever need in a dynamic body but i was just curious 🙂
What are you making? Is this one of those tilting mazes where you turn it around to get balls to fall through it somehow... if so I wonder if you could make the maze a static body, and change the worlds' gravity direction instead.
This would require you to rotate the scene when drawing to alway keep the gravity going straight down on the screen. It would also require some fiddling with Box2D source since it doesn't look like gravity can be changed after the world is created.
I got this idea thinking about how I could make a level of my platform game set on a large ship, where the whole environment is slowly rocking from side to side.
hey irresistable force, it was going to be something like that yeah, I did experiment with changing gravities and I think that might be the way to go yes, thanks for your help
Um, rotating the world and changing the direction of gravity are not the same thing. You won't see any centrifugal force in the second, for example.

I find it interesting that Box2D cannot cope with dynamic bodies that complex. Sounds like it could be a bug, as you shouldn't be hitting any of the fixed sized buffers with that setup.
Boris good point (again). If he wants to spin the maze fast enough so that the spinning of it causes balls to be thrown, changing the gravity direction will not work. I think it might still be ok for my boat example though since it will only be a slow gradual change of a maximum of a few degrees, not expecting to have the ship movement throw things around... or am I still too optimistic?
It depends. A low rotation will help your problems, but the larger the radius the worse your problems. So for a larger level, you need to rotate slower for the effect to not be noticeable at the edge.
A solution is when you do the gravity changing, you also apply all the correct forces that come from using a rotating frame. Unfortunately, I think the maths for this is quite complex, but just adding a reverse centrifugal force at the COM should get rid of all the first order effects, enough for the human eye. Not ideal, really, but it would work around not being able to rotate the world on account of it's size.

Or you could actually try finding out what the problem is, if you feel up to it.

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