Hexagonal Grids, how do you find which hexagon a point is in?

前端 未结 8 707
不知归路
不知归路 2020-12-07 15:14

I have a map made up of rows and columns of hexagons\"\"

This isn\'t an actual image of the hex-map I am using,

8条回答
  •  情歌与酒
    2020-12-07 15:44

    I dont know if it's going to help anyone but i have come up with a much simpler solution. When i create my Hexagon im just giving them a middle point and by finding the closest middle point with the mouse coordonate i can find wich one im on !

提交回复
热议问题