Is there a way to change the direction at run time?
I looked at AutoRotationBehavior - Babylon.js Documentation
I don’t know when you would change it though, some global return from idle callback or something.
If you simply want to change the direction, permanently, at scene creation, adding it after the ‘camera.useAutoRotationBehaviour’ line (without any if statement) should be fine.
Otherwise the “condition” is highly dependent on when you want it to change direction
Right, I thought I should change it every time it started, so I don’t get dizzy spinning the same direction every time, why I thought the init method or some callback might be helpful.
Ahh ok,
Could do something simple… like pointerDown https://www.babylonjs-playground.com/#6FBD14#190
of course if multiple pointerdown events in a row, even counts of events (2, 4, 6 etc) will cause the direction to switch back to what it was