How to reverse camera rotation

Hi!

I have a 360 image viewer build on top of Babylon DeviceOrientationCamera.
However when I attach the controls, swiping the screen rotates the camera relative to the picture, which is very counter intuitive for the user.

Is there a way to reverse the rotation on X and Y axis, and could you please point out how to do it!

Thanks in advance!

Hey!
you can change it by calling this code:

var touch= camera.inputs.attached["touch"];
if (touch) {
    touch.touchAngularSensibility *= -1;
}
1 Like