Advertisement

Please help..

Started by June 06, 2002 03:33 AM
2 comments, last by HellRiZZer 22 years, 5 months ago
Please, the only thing I need is how to find a cost of getting from one node to another. http://www.gamedev.net/community/forums/topic.asp?topic_id=98287 " Do we need us? "

Ionware Productions - Games and Game Tools Development

I''ve not implemented Dijkstra, but I''d guess it''s totally application specific.

Generally it would be the distance between the two nodes in your level, or if your terrain is sloped, the distance scaled by the "difficulty" of the slope.

Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
Advertisement
quote: Original post by HellRiZZer
Please, the only thing I need is how to find a cost of getting from one node to another.



The path cost in a search tree (graph structure) is the cost to traverse the arc in that graph. Since the graph represents a domain then the arc cost must be associated with a resource cost in the domain. What domain are you implementing Dijkstra''s for?

Timkin
Didn''t I answer this question in your other thread?

Mike

This topic is closed to new replies.

Advertisement