Calculates and returns the bitmask needed to determine if the given categories will collide with each other or not.
A unique category bitfield, or an array of them.
Calculates and returns the bitmask needed to determine if the given categories will collide with each other or not.