We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
three
@react-three/fiber
@react-three/drei
If you use Z as the camera UP axis and click the gizmo axis heads, the rotation is wrong for most of them.
Codesandbox
import React, { useRef } from "react"; import ReactDOM from "react-dom"; import { Canvas } from "@react-three/fiber"; import { GizmoHelper, GizmoViewport, OrbitControls } from "@react-three/drei"; ReactDOM.render( <Canvas style={{ position: "absolute", inset: 0 }} camera={{ up: [0, 0, 1], position: [2, 2, 2] }} > <axesHelper /> <OrbitControls makeDefault enableDamping={false} /> <GizmoHelper> <GizmoViewport /> </GizmoHelper> </Canvas>, document.getElementById("root") );
The text was updated successfully, but these errors were encountered:
fix: GizmoHelper rotations not respecting camera up (pmndrs#2321)
a14e723
Same issue here! I have also this error after clicking for a specific rotation:
Cannot use 'in' operator to search for 'getTarget' in null
I'm using a custom OrthographicCamera, a OrbitControls and setting up both on THREE.Object3D.DefaultUp.set(0, 0, 1) and camera.up...
THREE.Object3D.DefaultUp.set(0, 0, 1)
camera.up
Sorry, something went wrong.
Same issue here! I have also this error after clicking for a specific rotation: Cannot use 'in' operator to search for 'getTarget' in null I'm using a custom OrthographicCamera, a OrbitControls and setting up both on `THREE.Object3D.DefaultUp.set(0, 0, 1)` and `camera.up`...
Solved the error by setting makeDefault to OrbitControls, sorry for the OT
makeDefault
fix: GizmoHelper rotations not respecting camera up (#2321) (#2322)
2943f59
No branches or pull requests
three
version: 0.167.1@react-three/fiber
version: 8.17.12@react-three/drei
version: 9.121.3Problem description:
If you use Z as the camera UP axis and click the gizmo axis heads, the rotation is wrong for most of them.
Relevant code:
Codesandbox
Suggested solution:
Video
gizmohelper.mp4
The text was updated successfully, but these errors were encountered: