View rotation around camera center

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.

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

Tank You @Mugen87, I will try the solution, seems is a good idea.