![]() |
Re: Simple Pathfinding Idea
i'd say, try to let it find a path first (shortest) before trying to create random paths ;)
|
Re: Simple Pathfinding Idea
I can get them to find a shortest path but not a random path
|
Re: Simple Pathfinding Idea
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... |
Re: Simple Pathfinding Idea
is there any way to make the floyd-warshall pathdiner take a more random route ? I am currently playing around with various pathfinder
|
Re: Simple Pathfinding Idea
basically, no. That's because the Floyd-Warshall algorithm only consists in looking up in a table of fixed paths (which table is usually saved in the waypoints file).
If you want to know more about pathfinders, as well as pseudo-code samples for various of them, look here: http://filebase.bots-united.com/inde...on=file&id=106 that's all I ever needed to write my own A* implementation. |
Re: Simple Pathfinding Idea
well, somewhat you can do it.
once again a quote from http://www.lampel.net/johannes/joebo...XPDoc-beta.pdf, i'm too lazy to type that again : Quote:
|
Re: Simple Pathfinding Idea
ahh, I did something similar to this for my bot "AXB" ;P but then again, I didnt find a good way to do it fast enougt, It would just keep eating CPU power ;P
|
All times are GMT +2. The time now is 19:03. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.