-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement panning in FirstPersonController #8166
Conversation
I was playing around with this on mobile today and was wondering if we could use a two finger up/down gesture to control vertical movement. It works well for looking and walking around! Alternatively, could the controller be reconfigured with a prop to have the scroll (zoom?) action behave as before (move you in the direction you're pointing)? For use cases I'm familiar with there are two main modes this controller gets used in: a mode to freely move in 3D space to an area of interest, and a mode to walk around that area of interest as a human would for closer inspection. Desktop has controls for both modes with mouse and keyboard, but mobile would need some way to perform vertical movement |
@chrisgervang have you tried it with |
Oh nice, |
Related to #8149
Background
Add panning motions to
FirstPersonController
, so that camera is moved in the plane normal to the view direction when shift key is held. Also integrates withdragMode
. Test behavior here: https://jsfiddle.net/felixp/b5pugcyx/Change List
panStart
,pan
&panEnd
methods