- Home /
Question by
dzed · Jul 11, 2017 at 12:38 PM ·
sceneraycastingselection
Is it possible to detect if a object is occluded without using raycasting?
I have a scene with three boxes where the two are occluding the third. Is there a way to detect how much of the box is occluded by the other two? without using a ray casting or colliders on the other two.
Comment
Answer by dzed · Jul 11, 2017 at 02:20 PM
@TheReEvolutions yes it seems that if the box is slightly visible then the Renderer.isVisible flag is set to true. What I am interested in how much of the box is occluded by the other two boxes