Skip to main content
Formatted title as question. Fixed grammar.
Source Link
Anko
  • 13.5k
  • 10
  • 56
  • 82

Multi agent How do I make A* - avoidingagents avoid other agents?

I'm in progress of implementing a multi agent A* algorithm on a tile-based map where agent. Agents move only in the X and Y axisaxes. I do avoid collisions between them by checking where arethe others are when calculating paths.

It works fine except the situation whenwhere agents have to pass the same tile from different directions. In situations like shown on imagethis, an optimal solution would be for one agent shouldto wait for anotherthe other to pass, otherwise it would not be the best solution.:

Sample mapSample situation

Also, if there's no northern corridor, then pathfinding fails.

Any ideas how toHow could I implement such an algorithm?

Multi agent A* - avoiding other agents

I'm in progress of implementing multi agent A* algorithm on tile-based map where agent move only in X and Y axis. I do avoid collisions between them by checking where are others when calculating paths.

It works fine except the situation when agents have to pass the same tile from different directions. In situations like shown on image one agent should wait for another to pass, otherwise it would not be the best solution.

Sample map

Also, if there's no northern corridor, then pathfinding fails.

Any ideas how to implement such an algorithm?

How do I make A* agents avoid other agents?

I'm implementing a multi agent A* algorithm on a tile map. Agents move only in the X and Y axes. I avoid collisions between them by checking where the others are when calculating paths.

It works fine except the situation where agents have to pass the same tile from different directions. In situations like this, an optimal solution would be for one agent to wait for the other to pass:

Sample situation

Also, if there's no northern corridor, then pathfinding fails.

How could I implement such an algorithm?

Tweeted twitter.com/#!/StackGameDev/status/478441494366265344
added 3 characters in body
Source Link

I'm in progress of implementing multi agent A* algorithm on tile-based map where agent move only in X and Y axis. I do avoid collisions between them by checking where are others when calculating paths.

It works fine except the situation when agents have to pass the same tile from different directions. In situations like shown on image one agent should wait for another to pass, otherwise it would not be the best solution.

Sample map

Also, if there's no northern corridor, then pathfinding fails.

Any ideas how to implement such an algorithm?

I'm in progress of implementing multi agent A* algorithm on tile-based map where agent move only in X and Y axis. I do avoid collisions between them by checking where are others when calculating paths.

It works fine except the situation when agents have to pass the same tile from different directions. In situations like shown on image one agent should wait for another to pass, otherwise it would not be the best solution.

Sample map

Also, if there's no northern corridor, then pathfinding fails.

Any ideas how to implement such algorithm?

I'm in progress of implementing multi agent A* algorithm on tile-based map where agent move only in X and Y axis. I do avoid collisions between them by checking where are others when calculating paths.

It works fine except the situation when agents have to pass the same tile from different directions. In situations like shown on image one agent should wait for another to pass, otherwise it would not be the best solution.

Sample map

Also, if there's no northern corridor, then pathfinding fails.

Any ideas how to implement such an algorithm?

deleted 1 character in body
Source Link

I'm in progress of implementing multi agent A* algorithm on tile-based map where agent move only in X and Y axis. I do avoid collisions between them by checking where are others when calculating paths.

It works fine except the situation when agents have to pass the same tile from different directions. In situations like shown on image one agent should wait for another to pass, otherwise it would not be the best solutionssolution.

Sample map

Also, if there's no northern corridor, then pathfinding fails.

Any ideas how to implement such algorithm?

I'm in progress of implementing multi agent A* algorithm on tile-based map where agent move only in X and Y axis. I do avoid collisions between them by checking where are others when calculating paths.

It works fine except the situation when agents have to pass the same tile from different directions. In situations like shown on image one agent should wait for another to pass, otherwise it would not be the best solutions.

Sample map

Also, if there's no northern corridor, then pathfinding fails.

Any ideas how to implement such algorithm?

I'm in progress of implementing multi agent A* algorithm on tile-based map where agent move only in X and Y axis. I do avoid collisions between them by checking where are others when calculating paths.

It works fine except the situation when agents have to pass the same tile from different directions. In situations like shown on image one agent should wait for another to pass, otherwise it would not be the best solution.

Sample map

Also, if there's no northern corridor, then pathfinding fails.

Any ideas how to implement such algorithm?

Source Link
Loading