Размер видео: 1280 X 720853 X 480640 X 360
Показать панель управления
Автовоспроизведение
Автоповтор
nice. do you have sample tutorial or file ?
Check comment section I already mentioned
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;
nice. do you have sample tutorial or file ?
Check comment section I already mentioned
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;