If you need to adjust camera behaviour according your scene and canvas size, use camera limits.
So in “plain” Babylon.js it would be like camera.lowerRadiusLimit = 40; // In order to prevent camera from moving inside the model (in default position at least) camera.upperRadiusLimit = 130;