question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for panning the camera via keyboard, mouse and touch input

See original GitHub issue

This 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:19 (5 by maintainers)

github_iconTop GitHub Comments

18reactions
elalishcommented, Sep 8, 2020

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.

1reaction
2manyDisplayscommented, Sep 4, 2020

@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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found