Search Unity

Question How to map square shape hex grid to in-game world position?

Discussion in 'Navigation' started by Solidcomer, Jul 13, 2022.

  1. Solidcomer

    Solidcomer

    Joined:
    Sep 12, 2017
    Posts:
    95
    Hello,
    There are some games where units move on a hex grid map, however the grid shape is shown as square, just different collumn starts from different height.



    Please see the attached screenshot, the Romance of Three Kingdoms map.
    Please note the screenshot shows a 3D map, but I'm talking about 2D map with exactly the same "camera angle".

    I'm wondering, if it is a 2D map and players look at the map from the same angle as shown in the screenshot, and I have the hex grid map data in the memory, how can I map the position (collumn and row index) of a grid to the world position on the map in the Unity scene.

    Thank you.
     

    Attached Files: