16 collision group limit tip for New comers

So ive been doing great so far on my current medium sized* game and I came across a 16 collision group limit, which I didnt know about before.
I realized that I had redundant groups where I could have left the “default” group name. I was using custom messages instead of collision and contact_point_response. i.e not using my set group names at all. In other places I was using the group names where only message passing was necessary.

Just something to keep in mind when working with collision group

1 Like

The group limit is a limitation of Box2D (which we use for 2D physics) where the mask filter is represented by a short unsigned int where each bit indicates a group to mask against. It is mentioned in the Physics manual but quite easy to overlook.

4 Likes