-
Notifications
You must be signed in to change notification settings - Fork 790
Closed
Labels
Description
threeversion: 0.167.1@react-three/fiberversion: 8.17.6@react-three/dreiversion: 9.111.3nodeversion: 20.11.1npmversion: 10.2.4
Problem description:
If you use Z as the UP vector for the camera, and then try to rotate to face the Z axis, GizmoHelper will rotate correctly only the first time (video attached).
Relevant code:
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: [10, 10, 10] }}
>
<axesHelper />
<OrbitControls makeDefault enableDamping={false} />
<GizmoHelper>
<GizmoViewport />
</GizmoHelper>
</Canvas>,
document.getElementById("root")
);Suggested solution:
Video:
gizmo-helper.webm
Reactions are currently unavailable