-
I have a physics body with a compound collision shape and would like to be able to ignore some (transparent) child shapes for certain raycasts (e.g. lens flares, visibility checks). I would prefer to keep everything in a single body. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
NarrowPhaseQuery::CastShape / TransformedShape::CastShape already offers the interface to pass a ShapeFilter class to do what you're asking for. I didn't need a shape filter on CastRay/CollidePoint/CollideShape so I never implemented it. I added it for CastRay as well now in #168. Try it out. |
Beta Was this translation helpful? Give feedback.
NarrowPhaseQuery::CastShape / TransformedShape::CastShape already offers the interface to pass a ShapeFilter class to do what you're asking for. I didn't need a shape filter on CastRay/CollidePoint/CollideShape so I never implemented it. I added it for CastRay as well now in #168. Try it out.