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
Is there a way to keep position of camera when switch between DeviceOrientationControls (DOC) and OrbitControls (OC)?
For example, I'm having a sample scene build with a Cube and a Camera (360deg view), and I want when I switch from DOC to OC, it will keep current position of Camera.
btw, DeviceOrientationControls is using Quaternion to change camera, and OrbitControls is using Euler, is there a way to convert from quaternion to Euler?
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
-
Hi guys!
Is there a way to keep position of camera when switch between DeviceOrientationControls (DOC) and OrbitControls (OC)?
For example, I'm having a sample scene build with a Cube and a Camera (360deg view), and I want when I switch from DOC to OC, it will keep current position of Camera.
btw, DeviceOrientationControls is using Quaternion to change camera, and OrbitControls is using Euler, is there a way to convert from quaternion to Euler?
Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions