From 6eb2df95ddc53ace9e0f4a66fcc098abaa9c4e1c Mon Sep 17 00:00:00 2001 From: Aaron Chong Date: Thu, 8 Aug 2024 14:26:17 +0800 Subject: [PATCH] Increase depth of camera target to handle extremely large maps Signed-off-by: Aaron Chong --- .../dashboard/src/components/three-fiber/camera-control.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dashboard/src/components/three-fiber/camera-control.tsx b/packages/dashboard/src/components/three-fiber/camera-control.tsx index ed790003c..35b52faa2 100644 --- a/packages/dashboard/src/components/three-fiber/camera-control.tsx +++ b/packages/dashboard/src/components/three-fiber/camera-control.tsx @@ -62,7 +62,7 @@ export const CameraControl: React.FC = ({ zoom }) => { useEffect(() => { const controls = new OrbitControls(camera, gl.domElement); - controls.target = new Vector3(0, 0, -1000); + controls.target = new Vector3(0, 0, -10000); controls.enableRotate = false; controls.enableDamping = false; controls.enableZoom = true;