From 241e4140e785b7d7cfa939a9738c07360790544d Mon Sep 17 00:00:00 2001 From: Tom Boullay Date: Mon, 11 May 2026 10:29:46 +0200 Subject: [PATCH] update: audio already use --- src/components/three/gameplay/RepairCaseObject.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/three/gameplay/RepairCaseObject.tsx b/src/components/three/gameplay/RepairCaseObject.tsx index 97987f2..4e3b3a1 100644 --- a/src/components/three/gameplay/RepairCaseObject.tsx +++ b/src/components/three/gameplay/RepairCaseObject.tsx @@ -10,6 +10,8 @@ import { AudioManager } from "@/managers/AudioManager"; import type { Vector3Tuple } from "@/types/three/three"; import { logModelLoadError } from "@/utils/three/modelLoadLogger"; +const REPAIR_CASE_PAN_RANGE = 20; + interface RepairCaseErrorBoundaryProps { children: ReactNode; } @@ -63,6 +65,8 @@ export function RepairCaseObject({ open, onInspect, }: RepairCaseObjectProps): React.JSX.Element { + const pan = Math.max(-1, Math.min(1, position[0] / REPAIR_CASE_PAN_RANGE)); + return (