I am playing with a scene where I have a treasure protected by a wireframe dome that gets attacked by airplanes. I would like my airplanes to change color when they get very close to the map and have them disappear when they try to go through the dome.
My idea was to use the Shading editor and based on the plane's location, change their color then make them become transparent. The issue that I'm having is that it is not only based on the airplane location but also on the dome's location. So here's my question: is there a way for me to use another object's information (i.e. the dome's location and radius) inside the Shading of an object (i.e. my airplane)? Or is there a better way to do this (without manually animating it).