Update telemetry reference in createPlayerWaterContactBounds

This commit is contained in:
2026-04-11 19:07:17 +02:00
parent e282ad3974
commit 030068cc39

View File

@@ -1379,12 +1379,12 @@ export class RuntimeHost {
private createPlayerWaterContactBounds() {
if (
this.runtimeScene === null ||
this.currentFirstPersonTelemetry === null
this.currentPlayerControllerTelemetry === null
) {
return null;
}
const feetPosition = this.currentFirstPersonTelemetry.feetPosition;
const feetPosition = this.currentPlayerControllerTelemetry.feetPosition;
const playerShape = this.runtimeScene.playerCollider;
switch (playerShape.mode) {