Zoom via Button?

I am not too much into react, but the smooth camera motion was solved here:

If I understand your first problem correctly, you want to change 1 to distance between camera and mesh? Then you could simply use:

BABYLON.Vector3.Distance(camera.position, mesh.absolutePosition)

Regarding ArcRotate- and “other”-Cameras you might want to have a look at this, how position and rotation is set when you switch camera:

1 Like