Builtin Library
README.md
phys.setCollisionGroups
Set the collision group bitmasks on an entity's colliders. The two masks encode "what am I" (membership) and "what do I collide with" (filter) separately: two entities collide only when each one's filter contains a bit from the other's membership. Use it to sort entities into layers that selectively interact — for example a player that collides only with terrain. Returns the entity ID.