0 votes

Hello

After a couple of week spending creating a mesh library for a gridmap, I finally today got to the step to import it in godot. However it reacts strangely because the meshes of the tiles are not properly aligned.

My scene with all tiles were made in blender and imported in godot with dea. The structure is like this:

  root
       empty.001
            MeshInstance.001.1
       empty.002
            MeshInstance.002.1
            MeshInstance.002.2
       empty.003
            MeshInstance.003.1
            ...

It is not exactly like the mesh library of the platformer demo, since I added an empty between the mesh and the root. And I had to do this because some tiles are made of multiple meshes. Also, I use the empty to align the mesh easily.

Therefore I'm wondering, what is The good way to create a mesh library?

asked Jun 12, 2016 in Engine by Gokudomatic2 (684 points)

No many people seem to work with gridmaps.
Well, I had to fall back to the solution of merging all my meshes in one mesh per tile and set the origin to the center of the tile (which was the location of the empty). Quite restrictive but it works.

1 Answer

0 votes
answered Apr 3, 2017 by vctr (69 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 How to use this Q&A? before posting your first questions.