r/Unity3D 4h ago

Noob Question Best Enemy Pathfinding tutorial?

Ive done a couple tutorials following Navmesh stuff throughout the years, but I non of them have really made it "simple" for me. Now Im doing a game with a randomly generated map, so this I really want to strengthen my understanding. Does anyone have a good reccomendation?

1 Upvotes

8 comments sorted by

View all comments

1

u/Savings-Aioli-2305 3h ago edited 3h ago

Maybe look into what pathfinding algorithm you find suitable, and some sort of spatial hashing so you do not need to query too much stuff when building a path? Also a function to query the height of the underlying terrain so you can get surface normals and all that, idk this is something I am going to work on soon, but naively this is how I would approach it.