This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

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: https://www.youtube.com/watch?v=dulosHPl82A

has anyone an idea how i could get this working?

Godot version 3.4.4 stable
in Engine by (224 points)

1 Answer

0 votes

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)

by (8,188 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.