How do you set the camera right outside of a model or scene after you load the model?

I was able to load models and make them appear, but sometimes the models are huge and the camera ends up inside of the model instead of being right outside of far outside of the model. Is there a utility or some kind of code snippets that handles the camera positioning after loading a model and that takes into account the size of the loaded model?

Use camera-controls for that, the fitToBox method for instance.

1 Like