Hi, I am having problems updating the settings of the camera I have active.
This is the camera I have active:
function create360Camera() {
** const camera = new BABYLON.ArcRotateCamera(**
** “Camera360”,**
** 0,**
** 0,**
** 0.0001,**
** BABYLON.Vector3.Zero(),**
** window.scene**
** );**
** camera.lowerRadiusLimit = 0; // how far in can you zoom**
** camera.upperRadiusLimit = 0; // how far out can you zoom**
** camera.lowerAlphaLimit = 0; // how far in can you zoom**
** camera.inputs.attached.mousewheel.detachControl(canvasBJS);**
** camera.useNaturalPinchZoom = false;**
}
And here is an example method for changing the camera settings:
const camaraPlantaBaja = () => {
const camera = window.scene.getCameraByName(“Camera360”);
camera.alpha = 4.1;
camera.beta = 1.46;
camera.radius = 0.0001;
};
If I refresh the page the camera works, but if I run the method for the different views it does not always work.
Has this happened to anyone, any ideas?
Thank you very much for your help.