Initially, the THREE.OrbitControls
works well with the default camera position. However, when the camera position and rotation are changed via a button click, the camera's position shifts unexpectedly when trying to rotate the view on the canvas.
Camera:
Camera = new THREE.PerspectiveCamera(45, Width / Height, 0.1, 1000);
Camera.position.set(170, 120, 400); //initial camera position
Scene.add(Camera);
Camera.position.set(30, 167, 81);
Camera.rotation.set(-0.149, 0.3, 0.045); //final camera position
Orbit controls:
controls = new THREE.OrbitControls(Camera, Renderer.domElement);