So basically i want to set the target to the center of the object. So i get the length in all directions and safe the half of them in a vector. Then i want to set the target of the camera to that point/vector.
That does work so far, but the camera does not zoom an, as it does with targeting a mesh.
I set the Framingbehavior to true and tried ZoomOn but that doesn’t really works either.
I rebuild an easy example scene in this playground : Babylon.js Playground