I just wonder exactly how you use 'Group Masks' with commands such as the raycast commands.

**Quote: **"bool dynRaycastClosestShape (int origVec3ID, int dirVec3ID, int flag, int groups)

groups - Groups mask to filter shapes. "

I am defining groups using standard integers 1,2,3,4,5,6 etc. So what is the format for the group mask bits?

I'm guessing 0 = no collision (I think I tested that), then each bit from then on represents one of the groups. So I guess this means we have a maximum of 16 groups? Also, -1 seems to cause collision with all objects. Is that a special code for all objects, or is that caused by some sort of datatype wrapping error, effectively setting all the bits?

A bit of clarity would be really handy, as I'm starting to use more and more groups and having control over which groups I target is important.