How can I rotate the camera with buttons?

Hello. I want to rotate the ArcRotateCamera left and right when the button is hold pressed. I was able to do something similar to what I wanted with the method of increasing and decreasing the camera.alpha value, but what I want is to make it rotate smoothly as long as the button is pressed.

playground example:

https://playground.babylonjs.com/#L0J1VN

How can I do this the way I want?

Something like this?

rotate camera with button | Babylon.js Playground (babylonjs.com)

I would make the GUI a full screen UI, but that’s your decision.

1 Like

Another example - https://playground.babylonjs.com/#L0J1VN#2

3 Likes

thank you so much

1 Like

and many thanks to you too

1 Like