You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, guys. I've loaded the gltf file using GLTFLoader loader. But the model was not centered on the canvas so I've used the "Center"
component from drei. It centered perfectly.
And then I've added the rotating effect as below. useFrame(() => { myMesh.current.rotation.y += 0.01; });
So the rotating is working, too.
But if I scroll down on the website, the center of the model breaks down.
What's is the reason?
Guys, what do you think?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, guys. I've loaded the gltf file using GLTFLoader loader. But the model was not centered on the canvas so I've used the "Center"
component from drei. It centered perfectly.
And then I've added the rotating effect as below.
useFrame(() => { myMesh.current.rotation.y += 0.01; });
So the rotating is working, too.
But if I scroll down on the website, the center of the model breaks down.
What's is the reason?
Guys, what do you think?
Beta Was this translation helpful? Give feedback.
All reactions