Reddog
February 19, 2020, 6:01pm
1
Hello everyone. I need to rotate the chamber around its origin.
Because the project has to work on mobile, I can’t use PointerLock.
I have to configure the navigation so that the user rotates the camera and can’t move it, as if navigating navigating in a sphere for a panorama.
Someone knows a way to have the view rotation the same way of PointerLock but using OrbitControls?
Tankyou.
Mugen87
February 19, 2020, 6:41pm
2
Are you looking for something like this: three.js webgl - panorama
The idea is to position the camera with a small offset at the origin and then configure OrbitControls
so only orbiting is possible (so no zooming/dollying and panning).
1 Like
Reddog
February 20, 2020, 10:58am
3
Tank You @Mugen87 , I will try the solution, seems is a good idea.