开发者

quick pathfinding algorithm for lot of objects

i have lots of moving objects(maximum of 1000 objects) that each one needs to do pathfinding to maybe maximum 100 fixed locations(one object to one location at a time). What is the quickest pathfinding algorithm that best suit this? it doesn't have to be the shortest开发者_StackOverflow中文版 path, as long as the objects guaranteed to find the path is sufficient.

i have read the wikipedia about the A* but it says that the algorithm is slow.

if you have the code in actionscript 3 will help me alot

thx


Here's an A* implementation in ActionScript. I haven't tried it, but it seems good enough to start with:

http://www.weekendcode.com/2009/12/a-pathfinding-in-actionscript-3-0/

If you want some more Path Finding help, you can check this tutorial at AI Depot:

http://ai-depot.com/articles/beginners-guide-to-pathfinding-algorithms/

Or at Amit's A* Page:

http://theory.stanford.edu/~amitp/GameProgramming/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜