How to find neighbors in grids (Square + Hexagon)

Поделиться
HTML-код
  • Опубликовано: 10 дек 2024

Комментарии • 4

  • @BooneyTune
    @BooneyTune 3 месяца назад +1

    This is a very good tutorial. Thanks for sharing and looking forward to the A* next

  • @Callion.
    @Callion. 3 месяца назад

    Formula for getting square diagonal neighbour is not right for NorthEast. It is described as "TileID - Map Columns - 1" in the video, which is formula for NorthWest neighbour.
    Correct NorthEast formula should be "TileID - Map Columns + 1".
    Otherwise thanks for the tutorial, very helpful, keep it coming!