Description
Changelog
Reviews (0)

Basic 3D Character Controller for Godot

godotnaut

Features

A simple 3D third person character controller, with a fully functional (but independent) third person camera.

general

A simple state machine that manages animations, running, and rolling.

run

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.

settings

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

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.

Reviews

Basic 3D Character Controller has no reviews yet.

Login to write a review.