How to ignore own NavigationObstacle in NavigationAgent?

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

I have CharacterBody2D with NavigationAgent2D and NavigationObstacle2D for other characters to avoid. When i compute safe velocity for navigation agent it tries to avoid itself. I want NavigationAgent to ignore own NavigationObstacle. Is this possbile?

:bust_in_silhouette: Reply From: zhyrin

If you enable avoidance, agents automatically avoid each other, no need to add obstacle nodes to them.

You should only use a navigation obstacle for nodes that are not agents.