Open vincent-azumuta opened 1 year ago
three
@react-three/fiber
@react-three/drei
node
npm
https://user-images.githubusercontent.com/81570907/228866509-e97adaa5-69ac-40af-89d8-93d782b9b34f.mov
I have made a minimal reproducible example below.
https://codesandbox.io/s/react-three-fiber-camera-controls-forked-xirtvj?file=/src/App.tsx
The GizmoHelper crashes when initialised with default properties.
I had to add the code below to make it work, but then it results in the behaviour in the video.
onTarget={() => { const v = new Vector3(); controlsRef.current?.getTarget(v); return v; }}
Might be related to #522 ?
i am facing the problem, too
three
version: 0.143.0@react-three/fiber
version: 8.10.1@react-three/drei
version: 9.58.4node
version: 16.19.1npm
version: 8.19.3Problem description:
https://user-images.githubusercontent.com/81570907/228866509-e97adaa5-69ac-40af-89d8-93d782b9b34f.mov
Relevant code:
I have made a minimal reproducible example below.
https://codesandbox.io/s/react-three-fiber-camera-controls-forked-xirtvj?file=/src/App.tsx
The GizmoHelper crashes when initialised with default properties.
I had to add the code below to make it work, but then it results in the behaviour in the video.