feat move debug cube with remote hand tracking

This commit is contained in:
Tom Boullay
2026-04-27 16:07:54 +02:00
parent 641d2f8871
commit e25152b3e5
10 changed files with 430 additions and 5 deletions
+5 -2
View File
@@ -1,13 +1,15 @@
import { Suspense } from "react";
import { Canvas } from "@react-three/fiber";
import { Crosshair } from "@/components/ui/Crosshair";
import { HandTrackingOverlay } from "@/components/ui/HandTrackingOverlay";
import { HandTrackingProvider } from "@/components/ui/HandTrackingProvider";
import { InteractPrompt } from "@/components/ui/InteractPrompt";
import { DebugPerf } from "@/utils/debug/DebugPerf";
import { World } from "@/world/World";
function App(): React.JSX.Element {
return (
<>
<HandTrackingProvider>
<Canvas camera={{ position: [85, 60, 85], fov: 42 }} shadows>
<Suspense fallback={null}>
<World />
@@ -16,7 +18,8 @@ function App(): React.JSX.Element {
</Canvas>
<Crosshair />
<InteractPrompt />
</>
<HandTrackingOverlay />
</HandTrackingProvider>
);
}