Detect if 3D Object totally overlaps other 3D Object from camera perspective
Hello, I'm thinking about an game idea an unlit flat-shaded 3D World in which there is interaction between overlapping 3D Objects
PICTURE EXPLANATION: Imagine if there would be an object(in this case the drawn black scribble, which would be an 3D object with the same color as the tree's crone and not black) in Front of this tree's crone, which has the exact same color as the tree.
So now my question. I can't really think of an idea of how you could dedect if the object in front is fully covered in front of the object behind, so would theoretically "see nothing" of the object in front
my best idea: - send rays from the camera to all the (visible?) vertices of the object in front and check if the same color as (main) infront object. I know it has some cases where this wouldn't work so i'm askin you guys.
Your answer
Follow this Question
Related Questions
Is it possible to access the gameobject in front of another gameobject? 1 Answer
stop sprites on other characters being viewable over each other 0 Answers
Colliders detect collision too late - touch dragging problem 1 Answer
Unity C# - How to check if random moving gameobject is within boundaries 0 Answers
Raycast2D Two Objects at the same time 2 Answers