Version 1 (modified by sward, 7 years ago) (diff) |
---|
This page is part of the MAS-documentation.
For an overview of all MAS-related pages, see the MAS main page
Pathfinding
During the simulation each agent receives target coordinates (see at_x and at_y). Each agent must then find a path from its current position to its target using the visibility graph. This is accomplished using the A*-algorithm which is a well-known fast pathfinding algorithm (click here for a thorough explanation). For this,
Each agent calculates the direction toward its next intermittet target during each agent time step. It will accelerate toward those coordinates. Once the agent has come close enough (dist_to_int_target) to them, the next intermittent target is chosen. When the final target is reached, the agent is deleted.
|
Attachments (1)
- pathfinding.gif (602.9 KB) - added by sward 7 years ago.
Download all attachments as: .zip