Update target of OrbitControls on click #1186
Unanswered
AliMammadli
asked this question in
Q&A
Replies: 1 comment 3 replies
-
i think you need to call orbit.update() after the click or else camera position will be overwritten. |
Beta Was this translation helpful? Give feedback.
3 replies
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.
-
Hello!
In my project I update the camera to the position where is clicked. I change camera position through the state but also I want to update target of OrbitControls that give some look around effect. How can I update target with R3F?
Similar example: https://showroom.littleworkshop.fr
Please help!
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions