How to center and fit an imported mesh

How does Babylon Sandbox always center and fit an imported mesh in its canvas regardless of the mesh size??

@DOEHOONLEE check out camera framing behavior.

1 Like

I took a look at this. It does fit the mesh in the screen, but it centers the mesh with animation when I leave it for a while without touching it. Can I disable the this feature?

Also, is there a way to center with specific distance from the border of the canvas??

You could try adjusting radiusScale and framingTime … and maybe elevationReturnTime

1 Like

You can also use scene.createDefaultCamera(true, true, true);

1 Like