Best Practice: Obstacle Layer?

Yes, this is a good practice. The downside is that it can now miss very small obstacles right on the border between two nodes, since the capsule shape doesn’t cover them. For most games, this is not an issue.

Btw. A recast graph can typically handle objects that the agent can both walk on, and be obstructed by, in a more natural way. For your dungeon, I would recommend trying it out.

2 Likes