Navigation mesh pathfinding

How do I use navigation mesh pathfinding? I added the navigation mesh pathfinding behavior to an object and then I have it move to the player every frame but it just stands there not moving.

Are you using obstacles? The object with the nav mesh needs to be able to reach the destination including the final spot. If the object is chasing the player, the player can’t be an obstacle or be too close to an obstacle that the other object can’t fit completely into without touching an obstacle.

If that’s not the issue then we might need more info like a screenshot of the events being used.

nope, there are no obstacles in the way.

Here is the code

Here is the navmeshpathfinder config too

That’s weird. It doesn’t seem to work unless an object has the nav mesh obstacles behavior.

i added a few obstacles and it seems to be working now

1 Like