Animating R3F's both Camera & Orbit Controls using react-spring #613
dieguezguille
started this conversation in
General
Replies: 1 comment 1 reply
-
controls are made to control the camera, they'll overwrite it every frame. if you need to animate it while the controls are enabled it'll just turn into a race condition. you can either disable controls or animate scene contents, like a group instead of moving the camera. but this is a very common issue, i think you'll find lots of solutions in the threejs discourse forum, i've seen issues like that since i've started learning three. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone! I'm new to learning React, Three.js and R3F. Out of curiosity, I managed to create some Nav Links over a 3D model to kind of navigate between them. Then I wanted to go a bit further and included react-spring to make the transition smoother. I'm currently having 2 issues with this:
As I said, I have little to no experience with these libraries but I want to understand why this is happening and what can I do to improve. Any links/resources/comments are greatly appreciated.
You can check the code in the sandbox here
Beta Was this translation helpful? Give feedback.
All reactions