Before using it, I used camera.lookAt() to set direction in which camera looks.
Reading on OrbitControls, I learnt that camera.lookAt() should be replaced by controls.target.
I want to know what’s difference between these two.
I am also facing an issue with OrbitControls.
If I don’t make use of controls.target, then it becomes very difficult to zoom in to my target object.
And when I use it, zooming issue is solved but panning becomes an issue as target object doesn’t pan with rest of the scene and it is static while panning.
@Mugen87 how would you adjust the center of rotation after a pan? I have tried using controls.target.set() , but the center of rotation for the object remains unchanged.
Hey By the way I was looking at this thingy and I’m wondering how do you stop the auto rotate and keep the camera to stay in place whilst following the object so my movement script can work better because the camera rotates which makes my movement script going in circles when the " camera.rotation.y " code interferes with it?