Property "rotation" on OrbitControls does not work and is not in documentation #1632
Unanswered
kondulak10
asked this question in
Q&A
Replies: 1 comment
-
you're using plain threejs orbitcontrols wrapped into a small component so that you don't have to update and resize it yourself. from what i see there is no rotation property in that object. you can rotate the camera and call update on the controls, that's how you normally do it. r3f puts the controls into the store if you add the "makeDefault" flag, then you can access it everywhere as "controls", useThree and so on. |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to set initial camera rotation in my panorama sphere view using OrbitControls. React offers property "rotation" on OrbitControls, but this property has no effect and is not in the documentation: https://threejs.org/docs/#examples/en/controls/OrbitControls
Note: When not using OrbitControls, it is possible to set the rotation directly on the camera.
Any suggestions how to set up the initial camera rotation?
Code snippets:
Beta Was this translation helpful? Give feedback.
All reactions