Support for panning the camera via keyboard, mouse and touch input
See original GitHub issueThis is a feature of OrbitControls
that we left out of SmoothControls
when we implemented it in #288 .
We might implement panning any number of ways, but we should strive to do it such that it helps the user maintain focus on the object in frame.
Here is an example of one possible way to “curve” the camera as it pans out farther and farther so that it never looks fully away from the object in focus:
<div align="center"> </div>Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:19 (5 by maintainers)
Top Results From Across the Web
Zoom and pan in a diagram - Microsoft Support
Pan and zoom by using the keyboard. Hold down both the Ctrl and Shift keys. The pointer turns into a magnifying glass. Try...
Read more >Pan (DriveWorks Documentation)
Pan. The Pan Entity lets you pan 3D Document Nodes within a 3D Scene using mouse or touch input. The Pan Entity can...
Read more >How to make RTS Cinemachine Camera with Pan ... - YouTube
Learn how make RTS Camera Movement using Cinemachine and the new input system with Unity.
Read more >Strategy Game Camera with Unity's New Input System
The camera has smooth horizontal movement, smooth rotation, zoom in and out, mouse to the screen edge and dragging with a mouse click....
Read more >Yuzu Emulator | How to Setup Mouse and Keyboard - YouTube
Yuzu Emulator has just added Fully Featured Mouse and Keyboard Support to their emulator. This videos takes a look at how well it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay, well at the very least it’s probably time I put an example of of this on modelviewer.dev. If everyone likes the implementation, then I might put it as an option in our API.
@elalish
I think the implementation on sketchfab.com is quite intuitive and works very well. On the desktop it is right-click and on mobile is using two fingers. I know it’s probably not that easy, but It would be awesome if you could implement this feature in the future. Without it, as a User I can’t really inspect every detail on an object.
Actually I have a hard time finding an example how panning on right-click could be implemented by myself. Do you mean that the cameraTarget can be changed by using buttons? Or is there an input event I can use when right-click is pressed and cycle through a list of cameraTargets?