In my three.js scene I have an object with the {x: 0, y:0 z:-150} . My camera has a position of {x:0, y:0, z:75); . What I want is that the user can drag the camera around the object, so that the user keeps looking at the object.
The camera needs to follow the given circle stroke on a drag to the left or to the right.
I tried to use OrbitControls and a pivotPoint to get this result:
Try using Object3D.getWorldPosition vector instead of .position - since you seem to be doing some pivot-transformation magic.
Also, just take a look at this little boilerplate - it has barely anything besides a cube and OrbitControls. Make sure you’re handling controls in a similar fashion - ie. set controls.lookAt only once (change only when changing target object, or whenever object changes its position.)
If it still won’t work - could you recreate your issue on jsfiddle or codepen?