Enable / Disable deviceOrientation input


This is not a crucial bug, but I point it out anyway:

Enabling / Disabling deviceOrientation input like it’s suggested in the doc here doesn’t work:

After enabling deviceOrientation and using it, if I disable the input, all moves (mouse or touch) reset camera rotation at the end of the gesture.

It works if I remove and add again deviceOrientation input from the camera.

Here’s the PG: https://www.babylonjs-playground.com/#U895U9#2

Good catch! Will be fixed by next commit

1 Like