Is there a simple way to work out the necessary camera position so that it has a particular field of view?
I’m trying to make a basic 2D game, so all the elements exist in the X-Z plane with Y = 0. I place the camera above the scene at (0, -height, 0), looking down (hpr = 0,0,0). My question is, what is the relationship between the camera height and the amount of the XZ plane I can see? Do I have to work it out with trig, or is there a way (perhaps using Lens classes) to get it automatically?
Is there a way to say "I want to show the rectangle (left, 0, top)-(right, 0, bottom)? And a related question: is there a way to adjust the size of the display window from within the program?