Maximize zoom distance to fit 2 objects
问题 Objective: Move the camera position ONLY on the Z axis so the frustrum fit 2 objects. Conditions: One of the objects will be allways aligned with the camera X position Camera is set on perspective mode , not ortographic. the 2 spheres have no parent The result seen in ortographic mode from top-view should look like this: What I've done so far: Using trigonometry this can be seen it as: Knowing that, the objective is to find the Adjacent side, which will be the distance between the camera and