I am trying to move my camera with SetPosition. Unfortunately camera.radius also gets affected. I was aware that camera.radius has zooming values so why does it get affected when I use SetPosition?
scene.registerBeforeRender(function ()
{
console.log(camera.radius);
forwardDirection -= 0.01;
camera.setPosition(new BABYLON.Vector3(0, 0, camera.position.z*forwardDirection));
}