Please give us the ability to directly set the 3D view's camera distance

Supreme Blorgon shared this idea 4 years ago
Under Consideration

My project desperately needs a way to easily move the camera closer to and further from the origin depending on the radius of a selected object shown in the 3D graphics view. But ZoomIn[] and ZoomOut[] only work relative to the current zoom setting, and as far as I've been able to figure out, there's no way to zoom back in once the largest object has been selected—in other words, there's no way to implement a fixed scale by which to zoom in or out.

Since we already have SetViewDirection, which uses vectors, why not let us have the option to include the magnitude of the vector as a way to fix the camera's distance? Or at the very least, let us manually set the distance between the camera and any defined point, or even just the origin.

If anybody has any ideas on how I can programmatically set the camera distance, I'm all ears.

Comments (2)


I hope my answer in the other topics is enough


That solution works, thank you. I'd still prefer a more direct way of setting the distance, but for now, this works as a temporary solution.

© 2021 International GeoGebra Institute