Pathfinding on terrain?

i want to make npcs for my game and im trying to make them walk between random waypoints (the gray levitating cubes), but for some reason the npc just goes to one place and stays there. i tried it on a flat part instead of terrain and it worked fine so its something with the terrain. first time using path finding so any help is much appreciated.


image

2 Likes

It is an issue with roblox’s way of creating the navmesh. Especially on terrain, the navmesh for pathfinding is very buggy. you can check your nevmesh by turning on the setting in roblox studio file->Studio Settings->Show Navigation Mesh. Any area that isnt covered by the blueish color is not a apart of the navmesh, meaning that when a pathfinding npc is in that area, there is no possible way of it getting out and so it just stays there. One way to fix this issue would be to have the Show Navigation Mesh setting on and just redo your terrain and fix the parts that don’t have a navmesh.

2 Likes

I have also been trying to find another way to fix this issue but it seems like we just need an update to the pathfinding system

2 Likes

ive already found a fix on this guys thread, check it out:

1 Like

visualize the nav mesh in studio settings so you can debug easier.