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

Поделиться
HTML-код
  • Опубликовано: 5 ноя 2024

Комментарии • 3

  • @helpmikey
    @helpmikey Месяц назад +1

    nice. do you have sample tutorial or file ?

    • @paradise_hope
      @paradise_hope  Месяц назад

      Check comment section I already mentioned

  • @paradise_hope
    @paradise_hope  4 месяца назад

    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;