Godot Version
4.5
Question
I wanna make a camera panning, so whenever you hold the camera pans. How do i make that?
any help is appreciated!
-Quinn Jusufi <3
4.5
I wanna make a camera panning, so whenever you hold the camera pans. How do i make that?
any help is appreciated!
-Quinn Jusufi <3
2D or 3D? What are “camera pans”?
In cinematography, it should mean rotations around the Y axis in 3D without any travel ![]()
How do you “hold the camera pans” then? ![]()
To get nitpicky, the camera movement that’s typically called “pan” in computer graphics is actually jib/track in classic cinematographic terms.
There’s also similar mix-up with zoom and dolly.
sorry, i should have clarified, essentially just moving around the camera by moving the mouse
example:
also, yes i mean in 2d.
Capture the mouse motion event in an input event handler, get event’s relative property that contains the distance the mouse moved from its previous position, and add that to camera’s position.
Btw here’s a funny one:
thank you so much!