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 (