Like title : I want to except some physic collider in Raycast?
Thank you.
But i’m using cocos creator 2.x!
Is it available?
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