Simple FPS camera

An asset by tavurth
The page banner background of a mountain and forest
Simple FPS camera hero image

Quick Information

0 ratings
Simple FPS camera icon image
tavurth
Simple FPS camera

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

Supported Engine Version
3.4
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
6 months ago
Git URL
Issue URL

Simple FPS camera

README img README img README img README img

Web Demo ←←←←

Screenshot 2022-02-07 at 00 40 33 Screenshot 2022-02-09 at 18 50 31

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:

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

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Simple FPS camera icon image
tavurth
Simple FPS camera

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

Supported Engine Version
3.4
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
6 months ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers