I would like to pan the camera up when the render starts. In the official documentation, in order to move away from the placed cube, we adjust the z axis
camera.position.z = 5
Now, I want to pan up just like when I drag with the right click using orbit controls. But the result is that the camera tilts down. I'm using
camera.position.y = 5
To better understand the situation here are some references loooking at the scene from de side:
This is the initial set up
this is when I set camera.position.z = 5
This is when I set camera.position.y = 5
(not what I had in mind)
This is what I want