ZDoom-Pathfinding is a zscript library for navigation mesh pathfinding in GZDoom.
This library has two components.
- ZDoom-Navmesh-Generator Generate navigation meshes from your TEXTMAP lump in a browser-based editor.
- ZDoom-Pathfinding Library for pathfinding using a generated navmesh.
This toolkit aims to be a 1-click solution for better AI in your UDMF maps. The interface runs externally from Doom Builder and can generate robust navigation meshes in seconds. The navmesh generation can be adjusted with easy controls to better suit your needs.
How to Use this:
You will first need to set up and install ZDoom-Navmesh-Generator, a Node.js application that generates navigation meshes. This program generates the navigation meshes and exports them as JSON files. Once you're satisfied with your nav meshes, you can integrate the pathfinding library into your project. This library provides no movement code for your actors, you will need to create that yourself. Here's an example of how this is intended to be used.
Additional Reading:
A* Pathfinding
Recast Navigation Mesh
Digesting Duck's Simple Stupid Funnel Algorithm