#
luxiaotao1123
2024-04-28 8877cd129a4dc36f7848101a78dbefe18263a6f8
src/pages/base.jsx
@@ -8,6 +8,8 @@
import Buildings from '../components/buidings'
import TreeGroup from '../components/tree-group'
import House from '../components/house'
import Warehouse from '../core/warehouse'
import Left from './left'
const Base = (props) => {
    return (
@@ -24,17 +26,18 @@
                <Buildings />
                <TreeGroup />
                <House />
                <Box position={[0, 0, 0]} />
                <Warehouse />
                <OrbitControls />
                <Environment background preset="night" />
                <Help />
            </Canvas>
            <Left />
        </div>
    )
}
const Box = (props) => {
const Demo = (props) => {
    const ref = useRef()
    const [hovered, hover] = useState(false)
    const [clicked, click] = useState(false)