Giter Site home page Giter Site logo

iboonie / godot-character-controller-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexjhetherington/godot-character-controller-example

0.0 0.0 0.0 48 KB

An example implementation of a character controller, using move_and_collide

GDScript 100.00%

godot-character-controller-example's Introduction

godot-character-controller-example

An example implementation of a character controller, using move_and_collide. Created with Godot 4.1.

This repository is not meant to be a drag-and-drop character controller for Godot. The main purpose is to demonstrate how a character controller can be created using move_and_collide, because there's so little about that on the internet. That being said, check out the limitations below; and feel free to do whatever you need to do to include it in your game. If you find it helpful, please let me know!

Motivation

See my Manifesto! It contains further explanation for what and why this exists! http://www.footnotesforthefuture.com/words/godot-movement-manifesto/

Limitations and Considerations

  • IMPORTANT Godot Jolt is absolutely mandatory for any physics queries not using box shapes (this uses a cylinder shape): https://github.com/godot-jolt/godot-jolt
  • Jumping isn't implemeted; in my experience introducing jumping immediately forces you to make opinionated decisions that I don't want to address in this repo
  • I will accept PRs to help make this a more complete demo, but I won't discuss getting this to work in your project unless you very obviously know what you're talking about, sorry!

Jittering and Sticking

If you see jittering and sticking behaviour check the advanced options on the character controller (see the tooltips!). Adjusting the cylinder radius can help to.

Required Input Map

move_forward
move_backward
strafe_left
strafe_right
sprint
(escape key will free mouse)

godot-character-controller-example's People

Contributors

alexjhetherington avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.