feat editor

This commit is contained in:
math-pixel
2026-04-23 15:24:40 +02:00
parent 20fbaf05e1
commit d0cf876372
18 changed files with 2252 additions and 40 deletions
+21
View File
@@ -0,0 +1,21 @@
import { useCameraMode } from "@/hooks/debug/useCameraMode";
import { OrbitControls } from "@react-three/drei";
export default function EditorCamera() {
const cameraMode = useCameraMode();
if (cameraMode === "debug") {
return (
<OrbitControls
enableDamping
dampingFactor={0.05}
minDistance={10}
maxDistance={500}
target={[0, 0, 0]}
makeDefault
/>
);
}
return null;
}