+1 vote

More specifically, I need the GridMap itself to allow placement of (1 x 1 x 1) meshes on a (1 x 0.5 x 1) grid.

Changing the Spatial Scale of a 3D GridMap does something similar to what I want; but it scales down the Y value of the mesh blocks which causes a squashed appearance to the side of my meshes.

Sorry if this is confusing and thanks for reading!

in Engine by (70 points)

1 Answer

+1 vote

I don't see an option to do it. The size parameter is what you are looking for, however it is a single value, not a Vector3, which suggests only cubic configurations are allowed. Given that TileMap supports various sizes in each axis, it could be requested to be done as well in GridMap.

by (27,958 points)

Hi Zylann,

Thanks for your answer. I have changed the size to 0.5 in the GridMap and things are now working as I wanted them to. The only problem is that I have to be sure to move the tiles two coordinates instead of one as the X and Z axes are also changed to 0.5 in size.

It would be more convenient for the size value of the GridMap to be a Vector3 as you say. Who knows, maybe in the future it will be a feature :)

Thanks again!

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 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 webmaster@godotengine.org with your username.