How to know whether a mesh is occluded by a specific mesh?

Meshes has “isOccluded” property. But how to detect whether a specific mesh occluded it?

Hey gunpowderfan,

maybe this article can help you out:

1 Like

Thanks for reply, but this one doesn’t answer my question :frowning:
For example, if there’s a ball behind 2 walls, I just wanna know whether the ball is occluded by one of the walls

Not sure if I get it right, but can’t you launch ray after isOccluded is true to determine the mesh (wall)?


Hello @gunpowderfans just checking in, do you still need help with this?

My problem wasn’t solved but I don’t need help with this for now. I figured a way to prevent using this feature in weeks ago

1 Like