Update telemetry references in RuntimeHost
This commit is contained in:
@@ -1162,7 +1162,7 @@ export class RuntimeHost {
|
|||||||
this.activeController === this.firstPersonController
|
this.activeController === this.firstPersonController
|
||||||
? resolveUnderwaterFogState(
|
? resolveUnderwaterFogState(
|
||||||
this.runtimeScene,
|
this.runtimeScene,
|
||||||
this.currentFirstPersonTelemetry
|
this.currentPlayerControllerTelemetry
|
||||||
)
|
)
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
@@ -1599,10 +1599,10 @@ export class RuntimeHost {
|
|||||||
if (
|
if (
|
||||||
this.sceneReady &&
|
this.sceneReady &&
|
||||||
this.runtimeScene !== null &&
|
this.runtimeScene !== null &&
|
||||||
this.currentFirstPersonTelemetry !== null
|
this.currentPlayerControllerTelemetry !== null
|
||||||
) {
|
) {
|
||||||
this.interactionSystem.updatePlayerPosition(
|
this.interactionSystem.updatePlayerPosition(
|
||||||
this.currentFirstPersonTelemetry.feetPosition,
|
this.currentPlayerControllerTelemetry.feetPosition,
|
||||||
this.runtimeScene,
|
this.runtimeScene,
|
||||||
this.createInteractionDispatcher()
|
this.createInteractionDispatcher()
|
||||||
);
|
);
|
||||||
@@ -1738,7 +1738,7 @@ export class RuntimeHost {
|
|||||||
private resolveInteractionPrompt(): RuntimeInteractionPrompt | null {
|
private resolveInteractionPrompt(): RuntimeInteractionPrompt | null {
|
||||||
if (
|
if (
|
||||||
this.runtimeScene === null ||
|
this.runtimeScene === null ||
|
||||||
this.currentFirstPersonTelemetry === null ||
|
this.currentPlayerControllerTelemetry === null ||
|
||||||
(this.activeController !== this.firstPersonController &&
|
(this.activeController !== this.firstPersonController &&
|
||||||
this.activeController !== this.thirdPersonController)
|
this.activeController !== this.thirdPersonController)
|
||||||
) {
|
) {
|
||||||
@@ -1747,7 +1747,7 @@ export class RuntimeHost {
|
|||||||
|
|
||||||
this.camera.getWorldDirection(this.cameraForward);
|
this.camera.getWorldDirection(this.cameraForward);
|
||||||
|
|
||||||
const interactionOrigin = this.currentFirstPersonTelemetry.eyePosition;
|
const interactionOrigin = this.currentPlayerControllerTelemetry.eyePosition;
|
||||||
const rayOrigin =
|
const rayOrigin =
|
||||||
this.activeController === this.thirdPersonController
|
this.activeController === this.thirdPersonController
|
||||||
? {
|
? {
|
||||||
|
|||||||
Reference in New Issue
Block a user