Oxyn
March 17, 2023, 2:10pm
10
When it come to orbitcontrol, I go overkill…just to be sure
posted a sample here for a full reset (target included), maybe it can help despite it’s a blind guess.
orbitcontrol will overwrite any manual control of the camera.
as it’s name imply, it’s in charge of the rotation.
But you can disable it, then do your things, changes the values (if required) and enable it again.
If it can help, here is a sample of full reset and reconfiguration:
controls.enabled = false; //disable orbitControls
controls.reset(); //reset orbitControls
const vect3 = new THREE.Vector3(); //define any vector (here we just point at 0,0,0)
controls.target = vect3; //updat…