Raytracing / Visibility problem
I am trying to use raytracing to know if a node is visible from a specific position. Now I am using maxscript "intersectRay" function. The problem is that it only takes into account 2 objects, if I want to know if B would be visible from A but there are other objects (C for example) in the middle which occlude B, they will be omitted from calculations.
Is there other way I could use raytracing that told me if the ray really arrives to the point I want to check or if it intersects with something in its way??
I hope I made myself clear,
Thanks in advance.