From f584c04ecdfdf3f141379aaf1aa56a48af0ab811 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 25 Apr 2026 18:57:43 +0200 Subject: [PATCH] Add camera collision state variables to RuntimeHost --- src/runtime-three/runtime-host.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index 91b9f49e..b52bcee2 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -606,6 +606,7 @@ export class RuntimeHost { private readonly cameraRigLookTarget = new Vector3(); private readonly cameraRigDirection = new Vector3(); private readonly cameraRigForward = new Vector3(); + private readonly cameraCollisionDirection = new Vector3(); private readonly volumeOffset = new Vector3(); private readonly volumeInverseRotation = new Quaternion(); private readonly fogLocalCameraPosition = new Vector3(); @@ -767,6 +768,7 @@ export class RuntimeHost { private cameraRigLookYawRadians = 0; private cameraRigLookPitchRadians = 0; private cameraRigLookDragging = false; + private smoothedRuntimeCameraCollisionDistance: number | null = null; private lastCameraRigPointerClientX = 0; private lastCameraRigPointerClientY = 0; private runtimeClockStateHandler: