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
What would be the best way of moving the camera to a certain position programatically while using MapControls and an Orthographic camera? I've tried the following function but for some weird reason the camera rotates and shows a top/side view of the position I'm trying to center.
In the example I'm trying to center the camera on a square but I think that when the center function runs it somehow conflicts with the controls and it rotates.
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
-
What would be the best way of moving the camera to a certain position programatically while using MapControls and an Orthographic camera? I've tried the following function but for some weird reason the camera rotates and shows a top/side view of the position I'm trying to center.
I made a small example to illustrate the problem at: https://codesandbox.io/s/sleepy-dewdney-zuvyx?file=/src/App.js:838-1117
In the example I'm trying to center the camera on a square but I think that when the center function runs it somehow conflicts with the controls and it rotates.
Beta Was this translation helpful? Give feedback.
All reactions