Navigation Avoid Other Objects

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

Hello community!
First of all, Im using a 3d environment. Im implementing the AI movement via the Navigation Node in order for the AI characters to avoid walls and other environment objects. The problem is that the AI movement and the baked navigation mesh does not recognize other characters as obstacles, so they keep moving against each other or the player and never reaching the navigation node assigned.
Im currently managed to make the AI to stop if it detects that there is another character on the objective position. But if some kinematic body gets on the way the AI keeps walking towards it without advancing.
I dont know if I can set other objects as obstacles on the navigation mesh or if I should apply some steering behaviour for avoidance.
Does someone know a way to fix this problem?

Thanks in advance!

I found this post looking for the same answer as you. From what I’ve found so far, it’s not possible, but Godot 4 looks like it will allow re-baking of the navmesh in code, so that MIGHT allow you to have other moving AI’s to be an obstacle.

Satscape | 2022-06-30 09:03