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)?