From e282ad39746f6a6ff7c8ccca4ffa92211b1dd807 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 11 Apr 2026 19:07:00 +0200 Subject: [PATCH] Update telemetry references in RuntimeHost --- src/runtime-three/runtime-host.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index 5aac8a61..402e79b4 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -1162,7 +1162,7 @@ export class RuntimeHost { this.activeController === this.firstPersonController ? resolveUnderwaterFogState( this.runtimeScene, - this.currentFirstPersonTelemetry + this.currentPlayerControllerTelemetry ) : null; @@ -1599,10 +1599,10 @@ export class RuntimeHost { if ( this.sceneReady && this.runtimeScene !== null && - this.currentFirstPersonTelemetry !== null + this.currentPlayerControllerTelemetry !== null ) { this.interactionSystem.updatePlayerPosition( - this.currentFirstPersonTelemetry.feetPosition, + this.currentPlayerControllerTelemetry.feetPosition, this.runtimeScene, this.createInteractionDispatcher() ); @@ -1738,7 +1738,7 @@ export class RuntimeHost { private resolveInteractionPrompt(): RuntimeInteractionPrompt | null { if ( this.runtimeScene === null || - this.currentFirstPersonTelemetry === null || + this.currentPlayerControllerTelemetry === null || (this.activeController !== this.firstPersonController && this.activeController !== this.thirdPersonController) ) { @@ -1747,7 +1747,7 @@ export class RuntimeHost { this.camera.getWorldDirection(this.cameraForward); - const interactionOrigin = this.currentFirstPersonTelemetry.eyePosition; + const interactionOrigin = this.currentPlayerControllerTelemetry.eyePosition; const rayOrigin = this.activeController === this.thirdPersonController ? {