fitToBox
resets my camera rotation. how can I keep the angle?
#2443
Unanswered
mustafaahci
asked this question in
Q&A
Replies: 0 comments
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.
-
Hi,
I am trying to set my camera to show a top-left view of my scene (like rotated 30° to the left and 15° down) when a button is clicked. Here's the code I am using:
The problem is, the
fitToBox
call seems to override my rotation and kind of resets?Is there a way to fit the scene while keeping the rotation I want?
(and/or a better way to show the top-left view of my object while fitting it within the camera?)
I am still learning three.js and drei etc., so please bear with me.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions