LH: CameraControl
GDScript
This script operates a camera in a 'Transport Fever' way. And can be controlled by keys, mouse and mouse pad. Following features are implemented: - Movement LEFT/DOWN/UP/RIGHT (keys: 'A/S/W/D' / mouse[pad]: left/down/up/right with right button) - Pan CCW/CW (keys: 'Q/E' / mouse[pad]: left/right with middle button [key 'CTRL']) - Tilt UP/DOWN (keys: 'R/F' / mouse[pad]: up/down with middle button [key 'CTRL']) - Zoom OUT/IN (keys: 'Z/X' / mouse[pad]: scroll up/down [2 point pinch/release]) - Interlocking of contradictional movements - Optional edge scrolling LEFT/DOWN/UP/RIGHT and debug information - Configurable speeds/initial positions/limits/inversion of movement direction
Get it → github.com