Hello everyone, I’m attempting to implement a simple touch rotate gesture that extends the OrbitControls allowing for the camera to be rolled to the left and to the right.
Rolling the camera based on event.touches is simple, just a matter of applying camera.rotation.set, but I’m struggling to understand how to keep the camera in the new roll position since OrbitControls take over and reset the rotation at any subsequent interaction.
Is the only way to implement a new method in the OrbitControls to handle roll and create a new camera roll state alongside all the other states of OrbitControls so the rotation is not overwritten? Or is there something simpler?
Simple JSFiddle that shows what I want to do: https://jsfiddle.net/jacopocolo/eb95zg7m/10/ (the code is pretty simple so maybe this is not necessary but: the effect is only visible on touch devices and with multitouch gestures)
Thanks!