From 707315499280e76a1f7fafff1d37d1b627d5f29d Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 22 Apr 2026 18:07:51 +0200 Subject: [PATCH] auto-git: [change] src/runtime-three/runtime-host.ts --- src/runtime-three/runtime-host.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index 9ee21688..74aaa8f2 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -1423,8 +1423,9 @@ export class RuntimeHost { } const nextLookTarget = this.resolveRuntimeCameraRigLookTarget(nextRig); + const nextPosition = this.resolveRuntimeCameraRigPosition(nextRig); - if (nextLookTarget === null) { + if (nextLookTarget === null || nextPosition === null) { this.activeRuntimeCameraRig = null; this.activeRuntimeCameraRigId = null; this.cameraRigBlendState = null; @@ -1451,9 +1452,9 @@ export class RuntimeHost { .clone() .add(this.camera.getWorldDirection(this.cameraRigForward)), toPosition: new Vector3( - nextRig.position.x, - nextRig.position.y, - nextRig.position.z + nextPosition.x, + nextPosition.y, + nextPosition.z ), toLookTarget: new Vector3( nextLookTarget.x, @@ -1471,9 +1472,9 @@ export class RuntimeHost { this.updateRuntimeCameraRigLookState(nextRig, dt); const authoredPosition = new Vector3( - nextRig.position.x, - nextRig.position.y, - nextRig.position.z + nextPosition.x, + nextPosition.y, + nextPosition.z ); this.cameraRigLookTarget.set( nextLookTarget.x,