How would i go about a 3d in game grid for a city builder game?

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

hey, so im trying to make a 3d citybuilder. the problem is that im absolutely clueless
about how to make a grid, how to build stuff on it, and how to make objects snapp

what im trying to achieve should kinda look like in this unity tutorial:

has anyone an idea how i could get this working?

:bust_in_silhouette: Reply From: Inces

There is a GridMap node in Godot. It is basically a Tilemap of 3d. It kind of sucks. But it does have snapping functionality, so it should be enough.
Just like with 2d city builders on tilemaps, You may use two Gridmaps for this, one for basal terrain, and another for the buildings overlaying this terrain. And of course, one large dictionary containing all information in pairs (Vector position : tile content)