How to give dynamic position to camera [solved]

Hello Members, I created one torus, on Zoom-in Zoom-out, rotation and after click on Move Camera camera position going to center of the torus, Its fine worked on above operation, but if I Pan screen and click on Move Camera it is not going to center of torus. Video and jsfiddle.

Thank You…

.onComplete() should look like this:

.onComplete(function() {
    controls.target.copy(scene.position);
})
2 Likes

@prisoner849 Sir, Thank you… its working