How can I fix the 3D camera view?
I'm working on a project in which a user can select between different objects, and which will draw a sphere on the origin according to the selected object's characteristics. Basically, it's a slider that's linked to a list of different radii and other necessary parameters to show a model of a given planet in the solar system.
Since the size difference between the smallest and largest planets is so great, I'd like for the 3D graphics view to automatically adjust the camera distance, but remain at a fixed angle. In other words, I want the angle to remain fixed in an orthographic projection, but have the camera distance automatically adjust according to the planet's radius so that no matter which planet is selected, it will always be in view without the user needing to zoom in or out.
Is there a way to do this? I know how to do it in 2D graphics, but I don't see similar controls for 3D graphics viewing options.