Advertisement

pathfinding (3) When you create paths towards the star`s ends

Started by February 10, 2021 10:15 AM
4 comments, last by Calin 3 years, 9 months ago

… how do you know how far to extend the those ends i.e how big will the star be? Im really confused about how you build the star.

My project`s facebook page is “DreamLand Page”

I assume with ‘star’ you mean all visited path segments, starting from the origin of the search?

If so, you simply have to ‘extend’ until the goal has been found. (But i doubt that's the question you meant.)

Advertisement

If you mean the size of the open and closed lists, in a world with dynamic memory allocations, you generally don't even think about it. List containers deal with that problem all by themselves.

Since the lists contain tile positions, and assuming you have at most one state for each tile, an upper limit is the number of tiles in the world. I have seen games that store path-finding data in tiles, ie your open and closed lists get distributed over all tiles. Don't remember the details though, but it's an option.

Thanks guys. Looks like I need to study/research more to get to the bottom of it.

My project`s facebook page is “DreamLand Page”

To figure out A I realized I should first figure out what Dijkstra does and then deduce the difference between Dijkstra and A* . So what is Manhattan (in this context)?

My project`s facebook page is “DreamLand Page”

This topic is closed to new replies.

Advertisement