Heyo
I am currently working on a project where I need to place the camera so that the full movement of the character is viewable without moving the camera. I have a position in which the character begins, as well as the maximum distance that the character will move in all three directions (X, Y and Z). I also have a field of view (which is 90 degrees).
Is there an equation that will determine where I need to place the camera so that it does not move in order to see the full movement?
Note: this is using OpenGL.
Clarification: the camera should be “in front” of the symbol, which is in motion, and not above.
He will also move on the ground.
source
share