
Pathfinding is not just for finding paths for AI agents/NPCs and similar. It’s also for procedurally creating paths.
While working on path creation for a procedural terrain, I had the problem that the generated paths would keep having too steep sections, like this:
It was too steep and also didn’t look natural at all. I kept increasing the cost multiplier for slopes, but it didn’t help.
Then it...