Quoted By:
so basically I had to find z where relation of the area and the screen surface would 1:1 so then I would find the hypotenuse, find the cosine, find the angle using arccosine, and then I would have a formula that would approximate object position with mouse position: sqrt((z / cos(a))^2 - z^2) / (screen_dimension / 2)