MIST hex aStar
From DCS World Wiki - Hoggitworld.com
mist.hex.aStar
| Added with: Mist 4.6 |
| Description |
| Uses the A* algorithm to calculate the shortest path between a start point hexA and the destination of hexB given anything blocking the route as defined by blockers. |
| Syntax |
| table mist.hex.aStar(table hexA ,table hexB , table blockers ) |
| Valid Input Values: |
| {q = 4, r = 2, s = -6}
hash: "2 4 -6" |
| Return value: |
| table |
| Return example: |
| Usage Examples: |
| The following will draw on the map the path generated between the trigger zones "start" and "dest". Two group's routes are being used to define islands that must be routed around.
|
| Notes: |
| Related Functions |
| to, getRadius, setRadius, add, subtract,scale, rotate_left, rotate_right, neighbor, getNeighborCount, diagonalNeighbor, length, distance, round, lerp, cubeScale, cubeRing, cubeSpiral, lineDraw, cubeToAxial, axialToCube, pointToHex, makeVek2, makeVec3, makeVec3GL, hash, hashToHex, draw, aStar, getFromRoute |
