hello everyone
I am trying to use to camera in my tiled map , one for moving on the map
(UniversalCamera) and the other one for models, and here is my PG : https://playground.babylonjs.com/#X2ULQN#52
I just add the following line of code to my PG and get the error which said that getBoundingInfo undefined
, what is the problem with my PG?
// switching on double click
let switchCamera = true;
window.addEventListener("dblclick", function (evt) {
if (switchCam) {
scene.activeCamera = camera;
camera.attachControl(canvas, true);
} else {
scene.activeCamera = camera2;
camera2.attachControl(canvas, true);
}
switchCamera = !switchCamera;
})