How Add Collider on Complex Glb / Gltf Modal using Rapier.js

Поділитися
Вставка
  • Опубліковано 8 вер 2024

КОМЕНТАРІ • 1

  • @paradise_hope
    @paradise_hope  2 місяці тому

    import { OrbitControls, useAnimations, useGLTF } from "@react-three/drei";
    import { Physics, RigidBody } from "@react-three/rapier";
    import { useEffect, useRef } from "react";
    import { Canvas } from "react-three-fiber";
    const Scene = () => {
    const { scene, animations } = useGLTF('./hallwb.glb');
    const group = useRef();
    const { actions } = useAnimations(animations, group);
    return (



    );
    };
    const App = () => {
    return (


    );
    };
    export default App;