See this thread, and this comment, for how to calculate distance from camera to fit an object in the camera viewport:
trusktr
4
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to fit object inside canvas | 3 | 3239 | June 7, 2021 | |
| Moving an object to best fit the camera frustum | 4 | 890 | February 27, 2023 | |
| Camera Zoom To Fit Object | 34 | 77460 | April 14, 2023 | |
| How camera fit object to left half side of the screen(width and height) | 5 | 3098 | March 28, 2022 | |
| Fit projected/'perceived' bounds of mesh into viewport | 8 | 948 | May 30, 2024 |