Re: Simple Pathfinding Idea -
06-12-2004
well, then simply change the cost. So normally you have:
cost=distance
you add lines so yo uhave
cost += cost * (any value between 0 and 1).
Ie, when danger is 1, its very dangerious and will double the cost for that node...
|