CannonJS Collision Filtering

Hi I’ve been trying to work this out for a while now. Is there a way to get the collision filtering to work with CannonJS? Here is a simplified playground example of one of my problems:

I would like to add that I plan on using joints to attach these cylinders to the sphere, but without collision filtering or some type of workaround, I am stuck

cc @Cedric

Hi @hexenc0de and wilcome to the forum

You can use cannon specific filterGroup and filterMask to do so :


The results I was getting led me to believe the collision filtering wasn’t working at all. With the joints and collision filtering, I am still getting the same results as no collision filtering.

It probably has something to do with the rotations of the other cylinders in this case. Thank you.