My Situation:
In this scenario, I have setup two cameras - one displayed in the 3D space and the other recording that specific area. The code snippet below is used to create and configure these cameras along with the orbit controls.
https://i.sstatic.net/ioiqn.png
//Setting up the First THREE Camera
camera_Main = new THREE.PerspectiveCamera(45, window.innerWidth / window.innerHeight, 1, 10000);
camera_Main.position.set(-2000, 500, 500);
camera_Main_declared = true;
orbitController_Main = new THREE.OrbitControls(camera_Main, renderer_Main.domElement);
orbitController.maxPolarAngle = Math.PI / 2;
orbitController.enablePan = false;
orbitController.maxDistance = 2800;
orbitController.minDistance = 400;
orbitController.saveState();
//Configuring the Second Camera
camera_RT = new THREE.PerspectiveCamera(35, window.innerWidth / window.innerHeight, -100, -500);
var helper = new THREE.CameraHelper( camera_RT );
scene_Main.add( helper );
The Problem:
I am facing an issue where I need to set a different camera as default for the orbit controller. So when I execute the following lines of code:
orbitController.?????????? // Set camera_RT as default
orbitController.reset(); //Reset camera_RT orbit controls
my intention is to reset the orbit controls of camera_RT, rather than affecting camera_Main.