Quote:
I checked out ShouldCollide() and it looks like a simple matter to make category/masks a priority over group indices.
I'm still not convinced that you need to override the default behavior.
It sounds to my like you might be misunderstanding some things about how groups and category and mask bits are used. You mention '16 negative group indices', but there is no such limitation. Group indices aren't bit masks, but rather simple integer values; as such, there's more than 30,000 groups available for each sign (positive and negative). So in other words, there are almost certainly enough group indices available so that each creature can have its own index.
As for category bits, yes, there are only 16 of those available total (since the current version of Box2D uses a 16-bit integer for category and mask bits). But this would only be a limitation if you need to be able to represent more than 16 distinct types for the purpose of collision filtering.
Keep in mind that there doesn't have to be a one-to-one mapping from category bits to entity types; for example, you could have 100 different types of creatures and use the same category bit for all of them if you wanted. You don't need to assign a different category bit to each entity, and you don't even necessarily need to assign a different category bit to each entity type.
Based on what I've read in previous threads, I don't think you're the first person to have been confused by the filtering system, but once you get it figured out it's really pretty straightforward. If you need further help, perhaps you could do the following: post a list of all of the different 'creature types' that you have (or an abstraction thereof - letters would work fine), along with a collision matrix showing what should collide with what. For example, if there were 5 creature types, the collision matrix might look like this:
Code:
A B C D E
A x x x x
B x x x x x
C x x x x
D x x x
E x x x x
If you can provide that information, someone should be able to tell you whether it can be done using the default filtering behavior, and if so, how to do it.