- Home /
Finding the neigbours of each hexagons in hex map
I'm totally new to Unity engine and C# and currently doing a project developing a 3D board game. I have created a hex map and encountered the problem of finding the neighbour of each hex. The code of creating the map:
and the output:
Anyone can help me to find out the ways to create a function to find the neighbour of each hex?
baord.png
(60.2 kB)
output.png
(51.6 kB)
Comment
Answer by DJ_Design · Nov 18, 2021 at 02:57 PM
Check out CatLikeCoding - google should bring them up great series on a hexagonal project which includes a part on hexagon coordinates and how to assign neighbors.
Your answer
