Hi,
I would like to implement the mouse movements with keys - I have seen the camera tutorial, but the “Pan view” of the mouse behaves different.
Can anyone give me a tip ?
Rüdiger
Hi,
I would like to implement the mouse movements with keys - I have seen the camera tutorial, but the “Pan view” of the mouse behaves different.
Can anyone give me a tip ?
Rüdiger
Hi Rüdiger,
Could you please give an example (ideally via Sandcastle) of what you are trying to do and what the issue is with the camera pan?
Best,
Eli
Hi Eli,
I try do implement the camera/map movement with buttons for a touch screen.
I can’t use the gestures, so I look for another solution:
pan left/right → camera move left/right
pan up/down → camera move up/down
zoom in/out → camera moveforward/backward
But this is not the same as the Pan view using the mouse (drag left button and move mouse).
I have seen the function pan3D of screenspacecontroller - which handles the mouse movement. So I think to get the world coordinates from the middle of the screen and from a second point (±10 pixel in X or ±10 pixels in y) and use the pan3D function.
Rüdiger
i’m looking for a solution for the same.
I’d like to move the camera up/down/left/right, the the same way the dragging with the left mouse button does, but programatically.
Ie, move along the surface tangent, just like a mouse drag does.
the calls in Camera class seem to move forward/back based on the camera’s direction. Is there a way to move based on the surface tangent instead?