Original Post
Hi all,
I''m currently writing a simple pathfinder for a randomly generated grid map. The problem is that I want to support units (tanks, jeeps, etc.) of different sizes, so I want my pathfinder to be aware of ''tight spots''. The pathfinder should not produce paths that are to narrow for a unit to use.
I was wondering how this is done in other games. A brute force solution would be to inspect surrounding nodes during the node selection in my pathfinder, but that seems like an awful waste of cpu time.
If you have any ideas, I would really like to know about them!
-Fri