Open
Description
I have a use case where I dynamically set the position of the camera after the scene and a model is loaded. I realised that the orbit controls component still thinks that the camera is at the original position when the component was initialised. So the camera jumps back to its original position because of
this.dolly.position.copy(this.object.position);
in the init function.
I did a workaround and added this line of code to the update function and trigger an update event by calling camera.setAttribute('orbit-controls', 'distance', '2');
in order to get the dolly position updated with the new values.
Would you consider putting this.dolly.position.copy(this.object.position);
into the update function or do you have a better solution?
Thanks!