We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68a0f9c commit 687d272Copy full SHA for 687d272
1 file changed
src/CameraControls.ts
@@ -2806,7 +2806,15 @@ export class CameraControls extends EventDispatcher {
2806
// decompose spherical to the camera position
2807
this._spherical.makeSafe();
2808
this._camera.position.setFromSpherical( this._spherical ).applyQuaternion( this._yAxisUpSpaceInverse ).add( this._target );
2809
- this._camera.lookAt( this._target );
+
2810
+ _v3A.copy( this._target );
2811
+ if ( this._camera.parent ) {
2812
2813
+ this._camera.parent.localToWorld( _v3A );
2814
2815
+ }
2816
2817
+ this._camera.lookAt( _v3A );
2818
2819
// set offset after the orbit movement
2820
const affectOffset =
0 commit comments