Godot 4 3D map generation using hexes

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Witosław

Godot 4 3D map generation using hexes

I’m having some trouble creating a generated open world using hexes.
I looked for guides on the Internet and it turned out that there are not many, and worse, they are all outdated.

And I need advice:

  • I would like to create a generated open world using hexes (priority)
  • I would like the open world to be in 3D (priority)
  • I also want the tiles to be large so that there are interactive objects in it (additionally)

I’m new here and there’s a lot I still don’t understand.
If anyone can give me advice, thank you very much.

I am also making this kind of project. Hex mathematics, as well as random pattern generation, and optimizing large amount of 3d hexes - are all advanced and fairly complex coding problems. Start from understanding Hex coordinate systems, and build helper functions to get surrounding tiles, world_to_map, get next tile in direction, get direction between two tiles, get circle in shape of hexes, and so on. Generating world and making it 3d comes after. Post a question if You encounter solid problem

Inces | 2023-06-06 19:17