A simple 3D 100-line free-look camera for Godot 4 that mimics the functionality of the editor's camera for in-game use. For a version that works for Godot 3, see the godot-3
branch.
Use W and S to move forward and backward.
Use A and D to move left and right.
Use Q and E to move up and down.
Roll the scroll wheel to increase and decrease movement speed.
Hold down the right mouse button to rotate the camera. There's a slider in the editor to control mouse sensitivity.
Attach camera.gd
to your Camera node. That's it!
MIT.