• Stars
    star
    760
  • Rank 59,770 (Top 2 %)
  • Language
    C#
  • License
    Other
  • Created over 5 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An Open Source 3d character and character controller for the Godot game engine

banner image showing the character in several poses

Open 3D Mannequin is an Open Source 3d character and character controller for the Godot game engine

âš  The project only supports Godot version 3.2 and above.

âž¡ Follow us on Twitter and YouTube for free game creation tutorials, tips, and news! Get one of our Godot game creation courses to support our work on Free Software.

The mannequin in-game

Table of Contents

This is a third person character controller designed to work both with the keyboard and a gamepad. It features a camera that can auto-rotate or that can be controlled with a joystick.

Quick Start Guide

The 3D Third Person Character Controller is made of two scenes:

  • CameraRig.tscn - A 3D camera rig with a state machine for aiming
  • Player.tscn - A KinematicBody with a state machine for player movement. Contains an instance of CameraRig. It also includes the animated 3D mannequin.

To use the default character, instance Player in your game. See Game.tscn for an example. In this demo, the obstacles are mesh instances with static body collisions making up a cube world.

Controls

The game supports both mouse and keyboard, and the gamepad.

How it works

Player

The scene that deals with the movement, collision, and logic of the player. The player is a KinematicBody with a capsule collision shape, and the movement logic is within a Finite State Machine.

The scene also holds an instance of the PlayerMesh for animation purposes. This scene lives in the PlayerMesh.tscn scene. It holds the skeletal rig for the mesh's animation, the 3D model of the body and head sepearately, and the animation tree and player to control the animation workflow of the model. The lot is wrapped up in a spatial node with some logic to transition to which animation based on which state the player is in.

CameraRig

The scene that deals with the CameraRig movement. It follows the Player in the game, but in code it moves and rotates separately from it. It has a SpringArm node to help with preventing collision with level geometry - moving the viewpoint forwards to prevent moving the camera inside geometry. It also has a system that holds the raycast for aiming-mode, and the 3D sprite that is a projected reticule. The logic is held in a finite state machine.

Configuration

To change the player and the camera's behavior, you need to change properties on the corresponding states in their state machine.

Most of the configuration available for player movement are located on the Move state in the Player scene - the player speed and the rotational speed.

The CameraRig has more options. On the main CameraRig state in the CameraRig scene are items like the default field of view, whether Y is inverted, and sensitivity.

In addition, the Aim state allows some finer-tuned changes, like whether the aiming camera is first or third person, and by how much it should be offset over-the-shoulder of the character.

Customization

While the scenes can be modified extensively with new nodes and raw code, the state machine model allow for some simple, new functionality with relative ease.

As an example, there is the Extensions folder which contains additional player states for using the aiming view to fire a hookshot that pulls you towards the reticle. Once those states have been added to the Player's Move state, you only need to replace the return statement in Move's enter with code like owner.camera.connect("aim_fired", self, "on_Camera_aim_fired") and Move's exit with code like owner.camera.disconnect("aim_fired", self, "on_Camera_aim_fired")

Animating the character

The source Blender file is available in the releases tab. The character comes with all its animations. At first glance, it can look like it is lacking a rig.

Instead of a complex rig with many controls, we use ephemeral rigs as seen in Richard Lico's 2018 GDC talk Animating Quill. To do so, we work with the Blender add-on Rig on the Fly. This allows you to quickly generate a rig and controls adapted to the animation at hand. Once the animation is done, you bake it, and you're done!

Credits

  1. The Godot mannequin is a character made by Luciano Muñoz In blender 2.80.
  2. Godot code by Josh aka Cheeseness
  3. Additional code by Francois Belair aka Razoric480

Support our work

GDQuest is a social company focused on education and bringing people together around Free Software.

This Free Software is sponsored by our course Code a Professional 3D Character with Godot.

We share the techniques professionals use to make games and open source the code for most of our projects on our GitHub page.

You can:

Licenses

This project is dual-licensed:

  • The source code is available under the MIT license.
  • Art assets (images, audio files) are CC-By 4.0. You can attribute them to GDQuest and contributors (https://www.gdquest.com/).

More Repositories

1

godot-shaders

A large library of free and open-source shaders for the Godot game engine. Here, you'll get 2D and 3D shaders with playable demos.
GLSL
2,164
star
2

learn-gdscript

Learn Godot's GDScript programming language from zero, right in your browser, for free.
GDScript
1,913
star
3

godot-3-demos

Dozens of free and open source demos for the Godot game engine, version 3. Head to the link below for newer demos for Godot 4+
GDScript
1,753
star
4

godot-open-rpg

Learn to create turn-based combat with this Open Source RPG demo âš”
GDScript
1,432
star
5

godot-steering-ai-framework

A complete framework for Godot to create beautiful and complex AI motion. Works both in 2D and in 3D.
GDScript
1,144
star
6

godot-procedural-generation

Procedural generation algorithms and demos for the Godot game engine
GDScript
1,103
star
7

godot-make-pro-2d-games

A-RPG demo made with Godot, MIT-licensed, from our Godot course
GDScript
891
star
8

blender-power-sequencer

Add-on for video editing in Blender 3D: edit videos faster! Included in Blender 2.81+
Python
688
star
9

godot-2d-space-game

A 2D space exploration and mining game made with Godot and our AI framework
GDScript
675
star
10

godot-visual-effects

Open-source visual effects designed in Godot, from our VFX Secrets course.
GDScript
622
star
11

godot-platformer-2d

2d Metroidvania-inspired game for the 2019 GDquest Godot Kickstarter course project.
GDScript
532
star
12

godot-power-pitch

International pitch for the Godot Game Engine, made in Godot, available in 15+ languages
GDScript
383
star
13

godot-2d-builder

A simulation game demo made in Godot and inspired by Factorio.
GDScript
375
star
14

godot-demos-2022

Free and open-source Godot demos for learning, with guides and tutorials: 2022 edition.
GDScript
362
star
15

godot-beginner-2d-platformer

Learn to create a 2d platform game with the Godot game engine. This is a beginner programming tutorial.
GDScript
326
star
16

krita-batch-exporter

A Free Krita plugin to batch export layers and groups with maximum flexibility. Scale, trim, export multiple copies of your layers...
Python
281
star
17

krita-free-brushes

A collection of Free Krita brushes, by GDQuest, for concept artists, illustrators and game artists
256
star
18

gdscript-docs-maker

Create documentation and class references from your Godot GDScript code
Python
240
star
19

godot-kickstarter-2019

Create your Own Games with Godot, the Free Game Engine: sources from the January Kickstarter project from GDQuest
GDScript
238
star
20

godot-2d-jrpg-combat

A 2D Japanese RPG Active Time Battle demo for the Godot game engine
GDScript
182
star
21

godot-mini-tuts-demos

Code from our Godot mini tutorials
GDScript
128
star
22

godot-design-patterns

Code design patterns in Godot and in GDScript. State machines and the likes.
C#
123
star
23

godot-tours

A framework for interactive step-by-step tutorials in the Godot editor
GDScript
101
star
24

godot-2d-visual-novel

A Visual Novel demo made with the Godot game engine
GDScript
95
star
25

godot-2d-tactical-space-combat

A 2D Tactical Space Combat demo for the Godot game engine. Inspired by FTL
GDScript
90
star
26

godot-2d-rhythm

This demo is a rhythm game designed for the course Godot 2D Secrets.
GDScript
88
star
27

godot-2d-tactical-rpg-movement

Grid-based movement for a Tactical RPG
GDScript
79
star
28

godot-presentations

Create beautiful interactive presentations and localize them! Made with the Godot game engine
GDScript
69
star
29

krita-tileset-templates

Tileset and tilemap templates for Krita, Photoshop and Tiled 1.0
67
star
30

godot-getting-started-2021

Downloads for the Getting Started with Godot in 2021 free course.
GDScript
57
star
31

godot-2d-tower-defense

GDScript
50
star
32

product-packager

A portable shell program to package and prepare courses, tutorial series, and other products to release on e-commerce platforms like Gumroad and Mavenseed.
Python
50
star
33

godot-guides-v3.0

Work in progress guides and tutorials for the official Godot 3.0 documentation
GDScript
43
star
34

website

HTML
43
star
35

game-sprites

A library of Free game assets to prototype your games
38
star
36

godot-new-features-v3.1

Tutorial series and demos to learn the new features in Godot 3.1
GDScript
31
star
37

learn-gdscript-translations

Translations for the open-source app Learn GDScript From Zero
Python
31
star
38

godot-3d-fps-beginner-series

A beginner-friendly tutorial series hosted by James Taft to learn to create a First Person Shooter in Godot
GDScript
27
star
39

godot-demo-projects-remake

Proof of concept to greatly improve to the official godot demo projects repository.
GDScript
26
star
40

blender-proxies-generator

Command line program to generate video proxies faster for Blender's Video Sequence Editor, using ffmpeg
Python
26
star
41

blender-sequencer-multithreaded-render

Multithreaded renders for the Blender video sequence editor, from the command line
Python
25
star
42

godot-visualization-tools

Tools for debug drawing and animation for visualizations and tutorials
GDScript
23
star
43

godot-2d-action-platformer

GDScript
22
star
44

godot-steering-ai-framework-submodule

A complete framework for Godot to create beautiful and complex AI motion. Works both in 2D and in 3D. For use as Git submodules.
GDScript
21
star
45

godot-steering-ai-framework-demos

Repository of demos and test scenes for GDQuest's Steering AI Framework
GDScript
18
star
46

godot-debug-ui-toolkit

Modular UI components to create debug interfaces and add-on interfaces in Godot.
GDScript
15
star
47

meta

A repository to talk about GDQuest at large, guidelines, etc. all in one place. This is where public discussions that don't belong to a specific repository go.
13
star
48

godot-text-tools

A collection of addons to help to edit text and UI faster within Godot. Color palette, rich text editor...
GDScript
11
star
49

blender-power-sequencer-docs

Documentation sources for Power Sequencer, the Blender add-on for video makers
10
star
50

emacs-flycheck-gdscript

Emacs flycheck extension to lint GDScript code with gdlint
7
star
51

3D-graphics-benchmark-PoC

GDScript
5
star
52

GDPractice

A framework to create interactive coding practices in the Godot engine.
GDScript
4
star
53

godot-plugin-highlighter

Highlights parts of the editor interface that are under the mouse
GDScript
4
star
54

godot-addons

GDQuest Godot Addons
GDScript
4
star
55

godot-js-types

Javascript and Typescript types for Godot related files and the in-browser Godot runtime
JavaScript
3
star
56

godot-plugin-tour

Utilities to create Godot tours
GDScript
3
star
57

godot-colorpicker-presets

Reads a color presets hex file in the project directory and adds the colors to the editor ColorPicker for quick access.
GDScript
3
star
58

godot-learning-app-exporter

Exports Godot projects for usage in the GDQuest learning app
JavaScript
3
star
59

process-course

TypeScript
1
star