Collider from NavAgents parent gets stuck on corners

Godot Version

4.3

Question

In my game I use a navmesh and navagents. However, there are also objects with StaticBody3D in the area. The navagents sometimes calculate paths that are so close to the edge that the colliders of the agents collide with those of the objects around them and the agent gets stuck in that spot.

How can I solve this?

Screenshot 2024-09-18 153023

You need to bake the navigation mesh with an agent radius that is at least as large as your collision shape plus some margin to account for physics sliding and path desired distance on the agent.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.