A collection of scripts and resources for implementing utility-based AI in Godot.
To install, follow the latest instructions for installing plugins in the Godot documentation.
- Define abstract behaviors in terms of one or more considerations.
- Create response curves to determine the utility of your behaviors.
- Create concrete options combining a behavior, a specific decision context, and an in-game action to perform if the behavior is chosen.
- Choose between available options based on their utility score.
Behaviors, considerations, response curves and options can be edited directly in the Inspector:
Since actions and contexts describe the interaction between the utility AI system and the rest of the game, their implementations are game-specific. Simple examples of using the plugin are available in the examples directory.
Additional documentation is available in Godot's help window after installing the plugin.
The plugin is distributed under the MIT license. See LICENSE for more information.
Tests and examples are distributed under the Zero-Clause BSD license. See tests/LICENSE for more information.
The logo is licensed under the Creative Commons Attribution 4.0 International License. See logo/LICENSE for more information.
- An Introduction to Utility Theory, David "Rez" Graham
- Improving AI Decision Modeling Through Utility Theory, Dave Mark & Kevin Dill
- Building a Better Centaur: AI at Massive Scale, Dave Mark & Mike Lewis