Move the camera position on two axes with the coordinates of an object

I try to move the camera to the coordinates of an object in my scene. However the camera doesn’t move to the right coordinates, it looks like it is shifting, do you have an idea? In addition, it performs a rotation. I admit I don’t really understand how the orbitcontrol positioning system works…

image

Hi @Corentin_motc

Keep in mind that orbitControls always work with a target property. A point in the scene where the camera always look at, so, The camera will rotate to look at this point in the scene. You can try to set the autoRotate to false or move or change the target.

Another option is to use another type of control, take a look at all the available controls here