Description
Changelog
Reviews (0)
Basic 3D Character Controller for Godot
Features
A simple 3D third person character controller, with a fully functional (but independent) third person camera.
A simple state machine that manages animations, running, and rolling.
Customisable settings in the editor:
- move speed # How fast the player moves
- run speed # How fast the player runs
- roll speed # How fast the player rolls
- jump velocity # How high the player jumps
- turn scalar # How fast the player turns
- turn immediate # Multiplier for the player's turn.
- accelerate immediate # Multiplier for the player's acceleration.
- decelerate immediate # Multiplier for the player's deceleration.
- variable jump # Multiplier for the player's jump input.
To use the camera, simply drag the camera.tscn into your scene and use the set_following function.
For example, inside the player's _ready event, you could call:
%Camera.set_following(self)
To alter the camera's third person properties such as distance from player and offset, change its Spring Arm.
Check out player.gd and camera.gd to view the fully documented code.
Credits
- Block materials use a texture from Kenney's Prototype Textures asset pack.
- Godotnaut was rigged and animated using Mesh2Motion.
- Demo project was created with the Godot game engine.
AI Note
- This project, as with all FriendlyCosmonaut projects, was not created using AI. I am fundamentally opposed to AI's usage; it is a detestable parasite draining our environment and humanity.
Changelog for version v1.0.0
No changelog provided for this version.