Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser
Quick Information
A simple example scene, showing how to create a FPS camera.If you'd like to give me some feedback, or you'd like to help improve this demo, please leave a comment here:https://github.com/tavurth/godot-simple-fps-camera/issues
Simple FPS camera
Web Demo ←←←←
https://user-images.githubusercontent.com/100964/153240320-7fad22ed-8840-4f54-9ee1-8af7421e9767.mp4
A FPS camera made for the purposes of teaching others GDscript and godot.
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.
Requirements:
- Godot 3.x
Ideas
Camera rotation
The main idea I'd like to represent here is splitting the X rotation and Y rotation.
We use a parent node "Player", and a child node "Camera". 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.
Player model
The player model was loaded as a .glb
file with animations. The animations were downloaded from mixamo.com.
Then an AnimationTree was created and you can explore the two AnimationBlend1D which are used for moving and strafing .
A simple example scene, showing how to create a FPS camera.
If you'd like to give me some feedback, or you'd like to help improve this demo, please leave a comment here:
https://github.com/tavurth/godot-simple-fps-camera/issues
Reviews
Quick Information
A simple example scene, showing how to create a FPS camera.If you'd like to give me some feedback, or you'd like to help improve this demo, please leave a comment here:https://github.com/tavurth/godot-simple-fps-camera/issues