When using the camera, I have a few problems, do not understand, is not only ArcRotateCamera, to him, the mouse control, and control the mouse closer to pull away, and the general camera or their own camera and don’t have the function, I have been using their own camera, now I want to give him the mouse wheel control distance, only the left mouse button for selected, but the buttons seem to be friendly to it does not, this is my test code
let camera = new BABYLON.FreeCamera(“camera”, new BABYLON.Vector3(0.12,8.53,17.67),this.scene);
camera.setTarget(new BABYLON.Vector3( 0.128,8.15,16.76));
//camera.inputs.remove(camera.inputs.attached.keyboard);
//camera.inputs.attached.pointers.buttons = [2];
camera.speed=0.5;
camera.attachControl(this.engine.getRenderingCanvas(),true);
this.scene.activeCamera=camera;
/* const camera = new BABYLON.ArcRotateCamera("Camera", Math.PI/2,1.05,15, BABYLON.Vector3.Zero(), this.scene);
camera.inputs.remove(camera.inputs.attached.keyboard);
camera.wheelDeltaPercentage = 0.008;
camera.panningSensibility = 0; // this line block the panning but now the right button rotate the camera too.
camera.attachControl(this.engine.getRenderingCanvas(), true);
camera.inputs.attached.pointers.buttons = [2];