Godot simple FPS camera
Simple FPS camera
Sources can be found here
A FPS camera made for the purposes of teaching others `GDscript` and the Godot engine.
The purpose of this demo is to show how to create a camera in a simple way.
You are free to use, modify and merge this in whatever way you like.
Ideas
The main idea I'd like to represent here is splitting the X rotation and Y rotation.
We use a parent node Yaw, and a child node. The parent node takes care of the left and right rotation, while the child node takes care of vertical rotation.
If we simply try to rotate the child node in first the X and then the Y directions we'd end up with a sort of flight-simulator camera, where we can roll left and right rather than turning left and right.
Status | Released |
Platforms | HTML5 |
Release date | Jan 09, 2022 |
Author | tavurth |
Genre | Shooter |
Made with | Godot |
Tags | demo |
Code license | MIT License |
Average session | A few seconds |
Inputs | Keyboard, Mouse |
Development log
- Add player character to the sceneFeb 09, 2022
- Add Flashlight & light cookieFeb 06, 2022
Leave a comment
Log in with itch.io to leave a comment.