A Utility AI implementation for the Godot Engine using gdextension. If you don't know what Utility AI is, Wikipedia defines it as follows:
"...Utility AI, is a simple but effective way to model behaviours for non-player characters. Using numbers, formulas and scores to rate the relative benefit of possible actions, one can assign utilities to each action. A behaviour can then be selected based on which one scores the highest 'utility'... - Wikipedia - Utility system
You can download the latest version of the source code from the releases. The releases in this repository contain only the source code. To get the binaries and the example project, go to this repository: Utility AI GDExtension.
Please note that this is the source code repository and may contain in-development changes. While I aim to keep the main branch always in a compilable shape, it may sometimes contain incomplete features.
Godot 4.1.2 or newer.
- Utility based AI Agent Behaviours
- Behaviour Tree with utility support
- State Tree with utility support
- Node Query System
You can find the tutorials here.
You can find the documentation here.
- Clone the repository
- Initialize and update submodules
git submodule init && git submodule update
- Now you should be able to compile the project with scons
scons platform=<valid platform>
After compilation, the binaries are created in to the demo/addons/utility_ai/
folder. If all goes well, you should be able to launch the demo project in Godot and start using the addon.