FlowAI is a hierarchical pathfinding system (HPA*) for Godot 4, designed for large-scale worlds with multiple simultaneous agents.
- Download the latest release from the Releases page
- Copy the
addons/flowai/folder into your project'saddons/directory
- Adds a
FlowAIManagerto your scene. - Select your
FlowAIManagerand you will have access to some buttons on Inspector. - Click on
Add New Pathnode. - Select your new pathnode and you will have access to the "Add Next Pathnode" on Inspector. Now, you can just populate your scene with all pathnodes you need.
- Select your
FlowAIManagerand create a newBake Data. When creating it, click onBakebutton to create all sections. - Add a
FlowAIAgent3Don your NPC scene and configure it:
func _ready() -> void:
agent.set_random_path(false)
func _physics_process(delta: float) -> void:
if agent.is_path_complete():
agent.set_random_path(false)
var target = agent.get_next_pathnode_position()
var direction:Vector3 = (target - global_position).normalized()
velocity = direction * 10.0
move_and_slide()- Now, execute your scene and check if everything is working well.
- SCons 4.0+
- Python 3.6+
- C++17 compiler (MSVC 2019+, GCC 9+, Clang 10+)
- godot-cpp (included as submodule)
git clone --recursive https://github.com/yourname/flowai
cd flowai
git submodule add https://github.com/godotengine/godot-cpp
git submodule update --init --recursive# Debug (Development)
scons target=template_debug
# Release
scons target=template_release
# Windows cross-compile no Linux
scons platform=windows target=template_releaseThe compiled DLL will to flow_ai_project/addons/FlowAI/bin/.