Volver al ranking

GDQuest/godot-steering-ai-framework

GDScriptgdquest.com/docs/godot-steering-ai-framework

A complete framework for Godot to create beautiful and complex AI motion. Works both in 2D and in 3D.

godotaiartificial-intelligencesteering-behaviorsgame-developmentagentsgdscriptalgorithmsframeworkgodot-game-enginegodot-engine
Crecimiento de estrellas
Estrellas
1.5k
Forks
91
Crecimiento semanal
Issues
12
1.5k
18 jul19 jul20 jul20 jul
README

Godot Steering AI Framework

Project banner

This project is a framework to code complex and smooth AI movement in the Godot game engine, in GDScript, using steering behaviors. It works in both 2D and 3D games.

➡ 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.

It supports all essential steering behaviors like flee, follow, look at, but also blended behaviors, group behaviors, avoiding neighbors, following a path, following the leader, and much more.

Getting the framework

This repository contains the framework and some demos for learning purposes. You can download a copy by clicking the green Code button and clicking Download ZIP. Then, copy and paste the addons/ directory into your project.

Introduction

In the 1990s, Craig Reynolds developed algorithms for common AI behaviors. They allowed AI agents to seek out or flee from a target, follow a pre-defined path, or face in a particular direction. They were simple, repeatable tasks that could be broken down into programming algorithms, which made them easy to reuse, maintain, combine, and extend.

While an AI agent's next action is based on decision making and planning algorithms, steering behaviors dictate how it will move from one frame to the next. They use available information and calculate where to move at that moment.

Joining these systems together can give sophisticated and graceful movement while also being more efficient than complex pathfinding algorithms like A*.

The framework

This project is a framework for the Godot game engine. It takes inspiration from the excellent GDX-AI framework for the LibGDX java-based framework.

Every class in the framework extends Godot's Reference type. There is no need to have a complex scene tree; you can contain that has to do with the AI's movement inside GDScript classes.

How it works

In GSAI, a steering agent represents a character or a vehicle. The agent stores its position, orientation, maximum speeds, and current velocity. The agent stores a steering behavior that calculates a linear or angular change in velocity based on its information.

The coder then applies that acceleration in whatever ways is appropriate to the character to change its velocities, like RigidBody's apply_impulse, or a KinematicBody's move_and_slide.

Documentation

The framework's documentation and code reference are available here: Godot steering AI framework documentation

Contributing

If you encounter a bug or you have an idea to improve the tool, please open an issue.

If you want to contribute to the project, for instance by fixing a bug or adding a feature, check out our:

  1. Contributor's guidelines.
  2. GDScript style guide

Support us

Our work on Free Software is sponsored by our Godot game creation courses. Consider getting one to support us!

If you like our work, please star the repository! This helps more people find it.

Join the community

  • You can join the GDQuest community and come chat with us on Discord
  • For quick news, follow us on Twitter
  • We release video tutorials and major updates on YouTube
Repositorios relacionados
godotengine/godot

Godot Engine – Multi-platform 2D and 3D game engine

C++MIT Licensegame-enginegodot
godotengine.org
114.5k26.1k
Donchitos/Claude-Code-Game-Studios

Turn Claude Code into a full game dev studio — 49 AI agents, 72 workflow skills, and a complete coordination system mirroring real studio hierarchy.

ShellMIT Licenseai-agentsai-assisted-development
23.3k3.3k
lettier/3d-game-shaders-for-beginners

🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.

C++shaders3d
lettier.github.io/3d-game-shaders-for-beginners/index.html
19.8k1.5k
heroiclabs/nakama

Scalable open-source game backend server: multiplayer, matchmaking, leaderboards, chat, and social features for games.

GoGo ModulesApache License 2.0multiplayerbackend
heroiclabs.com
12.9k1.4k
godotengine/awesome-godot

A curated list of free/libre plugins, scripts and add-ons for Godot

Creative Commons Attribution 4.0 Internationalgodotgodot-engine
10.4k567
Orama-Interactive/Pixelorama

Unleash your creativity with Pixelorama, a powerful and accessible open-source pixel art multitool. Whether you want to create sprites, tiles, animations, or just express yourself in the language of pixel art, this software will realize your pixel-perfect dreams with a vast toolbox of features. Available on Windows, Linux, macOS and the Web!

GDScriptMIT Licensegodot-enginegamedev
pixelorama.org
9.9k526
0xFA11/MultiplayerNetworkingResources

A curated list of Multiplayer Game Network Programming Resources

Cgame-developmentgamedev
multiplayernetworking.com
8.6k537
0xFA11/GameNetworkingResources

A Curated List of Multiplayer Game Network Programming Resources

Cgame-developmentgamedev
gamenetcode.com
7.6k484
Redot-Engine/redot-engine

Redot Engine – Multi-platform 2D and 3D game engine

C++MIT Licensegame-developmentgame-engine
redotengine.org
5.9k312
dialogic-godot/dialogic

💬 Create Dialogs, Visual Novels, RPGs, and manage Characters with Godot to create your Game!

GDScriptMIT Licenseaddonplugin
dialogic.pro
5.8k340
godotengine/godot-docs

Godot Engine official documentation

reStructuredTextOthergodotdocumentation
docs.godotengine.org
5.5k3.7k
liangxiegame/QFramework

Godot/Unity3D System Design Architecture

C#MIT Licenseunityunity3d
qframework.cn
5.4k862