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
I like to add a lookAround behavior to the standard orbitcontrols. In this mode, camera stays in its position and only target moves. It can be seen in this example when you hold down shift and drag: http://rawcdn.githack.com/sciecode/three.js/dccf1578343bb9b7c79bb2eb2004d5ee34a76e6a/examples/webgl_loader_gltf.html
I wonder if something like that can be done without modifying orbitcontrols. In addition in the example above this behavior replaces default panning behavior of orbitcontrols. I like to keep both and maybe assign different keys for activating each (like Shift+drag for panning and Cmd+Shift+drag for Looking around) .
I thought of doing something with useFrame to lock the position of camera to what it was and only applying changes to the target but I think it's an overkill and there should be a simpler way of doing this
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
Uh oh!
There was an error while loading. Please reload this page.
-
I like to add a
lookAround
behavior to the standard orbitcontrols. In this mode, camera stays in its position and only target moves. It can be seen in this example when you hold down shift and drag:http://rawcdn.githack.com/sciecode/three.js/dccf1578343bb9b7c79bb2eb2004d5ee34a76e6a/examples/webgl_loader_gltf.html
I wonder if something like that can be done without modifying orbitcontrols. In addition in the example above this behavior replaces default panning behavior of orbitcontrols. I like to keep both and maybe assign different keys for activating each (like Shift+drag for panning and Cmd+Shift+drag for Looking around) .
I thought of doing something with useFrame to lock the position of camera to what it was and only applying changes to the target but I think it's an overkill and there should be a simpler way of doing this
Beta Was this translation helpful? Give feedback.
All reactions