I’ve been wanting to change the camera position to show my model in a clear view. For that I need to rotate my camera. tried the camera.rotation.y method. Doesn’t seem to change the rotation of the camera.
var size = new THREE.Vector3().subVectors(bbox.max, bbox.min);
self.renderer.camera.position.set(0, 0, 2 * Math.max(Math.abs(size.x), Math.max(Math.abs(size.y), Math.abs(size.z))));
self.renderer.camera.far = 3 * self.renderer.camera.position.z;
self.renderer.camera.near = self.renderer.camera.position.z / 100;
self.renderer.camera.rotation.y = 90*Math.PI/180;
self.renderer.camera.updateProjectionMatrix();
self.renderer.controls.update();