Disable input of the ArcRotatorCamera

Hello , please i need to diseable all inpunt of the ArcrotatorCamera ( Left/Right click, scrool and keybord )

I am using camera1.panningSensibility = 0 , but it is affect only right click , and it is doesnt diseable it completly

Thanks

Hi.

Well, you can just not attach controls to canvas if you don’t need them.

So either don’t use camera.attachControl(canvas,true), or use camera.detachControl(canvas) after to detach controls.

Now if that’s not the approach you want, you can manually disable specific inputs of the camera. You can read about it here

https://doc.babylonjs.com/how_to/customizing_camera_inputs#enable-or-disable-inputs

2 Likes

Thanks it is what i am looking for !

1 Like