How to set up collision groups/masks

I know how to set up collision groups but i somehow cant get masks to work.

this is how i set up a group: = pc.BODYGROUP_USER_1; = pc.BODYGROUP_USER_2;

Now i what that these 2 dont collide with each other using masks.

Tried to do it like that, but doesnt seem to work:
A.rigidbody.mask |= pc.BODYGROUP_USER_2;
B.rigidbody.mask |= pc.BODYGROUP_USER_1;

Any ideas?

Hello @thorce!

I don’t know if there are new possibilities now, but maybe this topic helps you:

There you can find links to other topics and example projects to use layers.

1 Like