If you're using Godot then you just need a navmesh node! In the top right of the viewport, there's a button to autogenerate the mesh :)