Commit ad47c3ce authored by wuhao's avatar wuhao 🎯

asder

parent d4491b2c
ssh root@192.168.40.50 "rm -rf /qjsfx/web/dashboard" ssh root@192.168.40.50 "rm -rf /ngsfx/web/dashboard"
echo 'deleted /qjsfx/web/dashboard' echo 'deleted /ngsfx/web/dashboard'
scp -r ./dashboard root@192.168.40.50:/qjsfx/web/ scp -r ./dashboard root@192.168.40.50:/ngsfx/web/
echo 'sync complete' echo 'sync complete'
...@@ -8,15 +8,15 @@ import { useGLTF } from "@react-three/drei"; ...@@ -8,15 +8,15 @@ import { useGLTF } from "@react-three/drei";
const Mesh = (props) => { const Mesh = (props) => {
const model = useGLTF(props.path); const model = useGLTF(props.path);
let mixer = new THREE.AnimationMixer(model.scene); // let mixer = new THREE.AnimationMixer(model.scene);
model.animations.forEach((clip)=>{ // model.animations.forEach((clip)=>{
const action = mixer.clipAction(clip); // const action = mixer.clipAction(clip);
action.play(); // action.play();
}) // })
useFrame((scene,delta)=>{ // useFrame((scene,delta)=>{
mixer?.update(delta) // mixer?.update(delta)
}) // })
return ( return (
<primitive object={model.scene} scale={0.007} position={[20,0.35,-8]}/> <primitive object={model.scene} scale={0.007} position={[20,0.35,-8]}/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment