diff --git a/src/lab/QuestCubeLab.tsx b/src/lab/QuestCubeLab.tsx index ca42d09..41f7710 100644 --- a/src/lab/QuestCubeLab.tsx +++ b/src/lab/QuestCubeLab.tsx @@ -7,7 +7,8 @@ import { Environment, PerspectiveCamera, } from "@react-three/drei"; -import { XR, createXRStore } from "@react-three/xr"; +import { XR } from "@react-three/xr"; +import { xrStore as store } from "@/stores/useXRStore"; import * as THREE from "three"; import { Beaker, @@ -17,6 +18,7 @@ import { RotateCcw, Hand, } from "lucide-react"; +import { Suspense } from "react"; /** * ============================================================ @@ -39,10 +41,6 @@ const CUBE_SIZE = 1; type AlignPhase = 'IDLE' | 'WAIT_SURFACE' | 'WAIT_FACE2' | 'WAIT_EDGE'; -const store = createXRStore({ - controller: { left: true, right: true }, -}); - // =================================================================== // COMPONENTE: CuboControlado // =================================================================== @@ -411,36 +409,38 @@ const QuestCubeLab = () => {