Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using GizmoHelper with CameraControls does not work as expected #1372

Open
vincent-azumuta opened this issue Mar 30, 2023 · 2 comments
Open
Labels
bug Something isn't working

Comments

@vincent-azumuta
Copy link

vincent-azumuta commented Mar 30, 2023

  • three version: 0.143.0
  • @react-three/fiber version: 8.10.1
  • @react-three/drei version: 9.58.4
  • node version: 16.19.1
  • npm version: 8.19.3

Problem description:

GizmoHelper.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.

				onTarget={() => {
					const v = new Vector3();
					controlsRef.current?.getTarget(v);
					return v;
				}}
@vincent-azumuta vincent-azumuta added the bug Something isn't working label Mar 30, 2023
@vincent-azumuta
Copy link
Author

Might be related to #522 ?

@1uciuszzz
Copy link

i am facing the problem, too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants