Set the camera's viewport to fit the size of the object

In a quick answer I think you are likely going to want this that was posted earlier today. Using and arc rotate camera and calling useFramingBehavior

Let me try to get a playground working with your example since you are loading a mesh and then will want to attach it.

2 Likes