I have a main camera that is tilted to be slightly isometric (set to orthographic with a -15 degree tilt from 90 on the x). I have implemented a magnifying glass effect using a second camera tilted at the same angle which changes its orthographic size in order to zoom and outputs to a render texture that is then applied to a cylinder in the scene (see screenshots).
The player is only supposed to be able to touch things through the magnifying glass. When I use Physics.Racast(), passing in the ray from Camera.ScreenPointToRay() with the touch position to the main camera, everything works as expected and I get a hit on the object I intend to touch. However, when trying to do the same thing via the magnifying glass camera, I get either no hits or hits in very strange positions that make absolutely no sense.
I don’t understand what I’m doing wrong here and really need some help.
Regular top-down isometric view:
View with magnifying glass active and zoomed:
I want to be able to have the player touch the switch with the red knob through the magnifying glass. This is where the positioning is all screwed up…

