How can except some physic collider in Raycast?

Like title : I want to except some physic collider in Raycast?

You can use Groups Mask to filter raycast result

Thank you.
But i’m using cocos creator 2.x!
Is it available?

I’m not entirely sure but you can probably use handler function to filter the results

The 2D physics raycast has a few methods.
cc.director.getPhysicsManager().rayCast(p1,p2, cc.RayCastType.Closest);
I can filter myself with AllClosest Type and detect by raycast again, but it’s not good solution when i have many physic body.
https://docs.cocos.com/creator/2.4/manual/en/physics/physics/physics-manager.html