Learn the easiest way to set up a first person camera in godot 3D.
If you liked the video and are interested in more, don't forget to subscribe.
And if you would like a video about a game mechanic, leave a comment about it.
📜 Note
new Version: • How to create a first person player - Lear...
A clamp function is required to limit the camera.
Like this:
if event is InputEventMouseMotion:
rotation.y -= event.relative.x * CAMERA_SENS
rotation.x -= event.relative.y * CAMERA_SENS
rotation.x = clamp(rotation.x, -0.5, 1.2)
GitHub: https://github.com/derdrache/tutorial...
💎 Assets
https://kaylousberg.itch.io/restauran...
🎵 Music credits
"Ancient Winds" from Kevin MacLeod
❤️ Support the Channel
Ko-Fi: https://ko-fi.com/devdrache
🎬 Video Chapters
0:00 - What you can expect & start scene
0:14 - setup player scene
0:43 - camera code
☠️ Difficulty Levels
Beginner: Very few and simple code - For everyone
Beginner 2: More code but still quite simple
Advanced: Basiscs must be in place, simple code is over
Advanced 2: now things are getting wild :)