Godot 4 Navigation 3D

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By methanic

Hello, I am having problems with navmeshes on grid terrain. I use a solution to avoid baking navmesh at runtime. I create navmesh for each grid type at _ready, to replace them without needing to rebake a whole map. Anyways

My solution works when I delete or replace a grid without needing for a rebake but some other problem arises.

Navigation agents follows the edges of navmesh to reach the target.
This is a GIF to demonstrate:

It is also weird that agents follow the edges only single direction

I’ve had a similar issue in 2d navigation, though I wasn’t using a tile map. Unfortunately, I never found a solution. I noticed that it happened less frequently when the angle of the edges was more different from the angle of the agent, but I don’t think that that will help much in this situation. Hope you find a solution soon!

LukeDassonville | 2022-10-29 19:12

:bust_in_silhouette: Reply From: LukeDassonville

I just fixed a problem that seems sort of related to your case by adjusting the default navigation settings in the project settings (they only appear if advanced settings are enabled). For me, I had to make the default cell size smaller (in my case, a value of .1 worked)