Add collision with another group
Check if two groups can collide
Create a new collision category. Returns the category bitmask.
Get the category bitmask for a named group
Get category + mask pair for use with Matter.js collisionFilter. Returns { category, mask } for Body.collisionFilter.
Get the collision mask for a category
List all registered category names
Remove collision with another group
Set which groups a category collides with
Named collision categories for organized physics interactions. Uses bitfield categories — each group is a power of 2.
Usage: