getNeighborTilePositionAsWorldCoords

fun getNeighborTilePositionAsWorldCoords(tile: TileInfo, otherTile: TileInfo): Vector2

Convert relative direction of otherTile seen from tile's position into a vector in world coordinates of length sqrt(3), so that it can be used to go from tile center to the edge of the hex in that direction (meaning the center of the border between the hexes)

Sources

jvm source
Link copied to clipboard