#
luxiaotao1123
2024-08-20 9d71e24e7982f6915e5f832512925bee9b245f35
src/components/ctrl.jsx
@@ -9,10 +9,12 @@
    MapControls,
} from '@react-three/drei';
import { useThree, useFrame } from '@react-three/fiber';
import { useStore } from '@/store';
const Controls = (props) => {
    const controlsRef = useRef();
    const [choiceCtrls, setChoiceCtrls] = useState(false);
    const store = useStore();
    useEffect(() => {
        if (props.fly) {
@@ -29,7 +31,7 @@
                {/* <CameraControls ref={controlsRef} /> */}
                <OrbitControls
                    ref={controlsRef}
                    autoRotate
                    autoRotate={store.autoRotate}
                    autoRotateSpeed={0.5}
                    target={[-200, 100, 0]}
                />