A* Pathfinding Project

AI moving into unwalkable area


I have a few colliders on terrain. The layer of colliders are detected by A* and they are all marked as unwalkable, I see them red on the gizmo view.

If I set a target which is inside the colliders, AI walks to the collider, waits for a second and enters inside the collider. Do I need to attach a rigidbody to the AI to prevent this?



Problem was between the keyboard and the chair. I forgot to set height layermask to Default only, and Offset was set to 1 for the AI. Now everything is working as intended.