fix hand tracking glove rendering

This commit is contained in:
Tom Boullay
2026-05-02 11:32:00 +02:00
parent bdc06f772f
commit fe662ebe7d
16 changed files with 319 additions and 155 deletions
+7 -2
View File
@@ -8,7 +8,7 @@ import { useCameraMode } from "@/hooks/debug/useCameraMode";
import { useSceneMode } from "@/hooks/debug/useSceneMode";
import { DebugCameraControls } from "@/components/debug/scene/DebugCameraControls";
import { DebugHelpers } from "@/components/debug/scene/DebugHelpers";
import { HandTrackingLeftGlove } from "@/components/three/handTracking/HandTrackingLeftGlove";
import { HandTrackingGlove } from "@/components/three/handTracking/HandTrackingGlove";
import { Environment } from "@/world/Environment";
import { GameMusic } from "@/world/GameMusic";
import { Lighting } from "@/world/Lighting";
@@ -31,7 +31,12 @@ export function World(): React.JSX.Element {
<Environment />
<Lighting />
<DebugHelpers />
{sceneMode === "physics" ? <HandTrackingLeftGlove /> : null}
{sceneMode === "physics" ? (
<>
<HandTrackingGlove handedness="left" />
<HandTrackingGlove handedness="right" />
</>
) : null}
{cameraMode === "debug" ? <DebugCameraControls /> : null}
{sceneMode === "game" ? (