From 51264d7c0e456d74b42c196301a6adbef0f016eb Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 11 Apr 2026 22:09:07 +0200 Subject: [PATCH] Update locomotion mode with diving option --- src/runtime-three/navigation-controller.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/runtime-three/navigation-controller.ts b/src/runtime-three/navigation-controller.ts index a621a0d1..04e5b205 100644 --- a/src/runtime-three/navigation-controller.ts +++ b/src/runtime-three/navigation-controller.ts @@ -79,7 +79,8 @@ export type RuntimeLocomotionMode = | "grounded" | "airborne" | "flying" - | "swimming"; + | "swimming" + | "diving"; export type RuntimeAirborneKind = "jumping" | "falling" | null; export type RuntimeLocomotionGait = | "idle" @@ -116,6 +117,7 @@ export interface RuntimeLocomotionState { export interface RuntimePlayerVolumeState { inWater: boolean; inFog: boolean; + waterSurfaceHeight: number | null; } export interface RuntimeControllerContext {