Hi people,
I started using Babylon.js 2 days ago and already in love with it. I wish to keep learning new things here.
I am currently creating an ArcRotateCamera() and I am able to rotate around along with zoom with mouse wheel. However I am not able to give a maximum limit for the zoom in/out functions separately. Is there a function to do this?
// This creates a basic Babylon Scene object (non-mesh)
var scene = new BABYLON.Scene(engine);
// This creates and positions a free camera (non-mesh)
var camera = new BABYLON.ArcRotateCamera("Camera", -Math.PI / 2, Math.PI / 2, 5, BABYLON.Vector3.Zero(), scene);
// This targets the camera to scene origin
camera.setTarget(BABYLON.Vector3.Zero());
// This attaches the camera to the canvas
camera.attachControl(canvas, true);
camera.lowerRadiusLimit = camera.upperRadiusLimit = camera.radius = 5;