I am looking for autorotate functionality like in Orbital controls. I found the rotateCamera() in Threejs Docs. Not sure how to use it or call it. Can anyone tell me how to use it?
I am looking for autorotate functionality like in Orbital controls. I found the rotateCamera() in Threejs Docs. Not sure how to use it or call it. Can anyone tell me how to use it?
TrackballControls does not support auto rotate. The mentioned method rotateCamera() is intended for internal use only. It's actually called by update().
You have two options now:
OrbitControlsTrackballControls and implement the auto rotate feature by yourself.