Hi everyone,
is it possible to reverse engineering the current positions when OrbitControls changes to set the current Look as initial Look ?
See the Example Pictures
Thanks everyone ….
Hi everyone,
is it possible to reverse engineering the current positions when OrbitControls changes to set the current Look as initial Look ?
See the Example Pictures
Thanks everyone ….
Do you mean:
// Saving
const savedPosition = camera.getWorldPosition(new Vector3());
const savedTarget = controls.target.clone();
// Retrieving
camera.position.copy(savedPosition);
controls.target.copy(savedTarget);
If you’re using controls - you can forget about modifying camera rotation / quaternion / lookAt - you can only modify target on controls.