Is there a way to rotate my camera 90 degrees around the scene? I attempted to use
cosole.log(camera.position);
and adjust the camera position based on the logged values, but it did not work as expected.
This is how the camera is set up initially (for the first image):
var width = window.innerWidth,
height = window.innerHeight;
var camera = new THREE.PerspectiveCamera(45, width / height, 0.1, 1000);
camera.position.set(0, -22, 22);
Current camera setup:
Desired camera rotation (90 degrees counter-clockwise turn):
UPDATE
I discovered that I can rotate the object itself using this code:
plane.rotation.z = 90 * Math.PI / 180;
However, I am still interested in achieving the same effect by rotating the camera specifically.