#
luxiaotao1123
2024-05-10 43e38caece60d0fd30b8ca444a31adc215732740
src/components/camera.jsx
@@ -16,6 +16,17 @@
    const [choiceCtrls, setChoiceCtrls] = useState(true);
    const ctrl = () => {
        return (
            <group>
                {/* 相机控制器 */}
                {/* <PresentationControls /> */}
                <CameraControls />
                {/* <PointerCtrl /> */}
            </group>
        );
    };
    const flyCtrl = () => {
        return (
            <group>
@@ -31,16 +42,6 @@
        );
    };
    const ctrl = () => {
        return (
            <group>
                {/* 相机控制器 */}
                {/* <PresentationControls /> */}
                <CameraControls />
                {/* <PointerCtrl /> */}
            </group>
        );
    };
    return (
        <>
            {choiceCtrls ? ctrl() : flyCtrl()}