Structur are not on on grid

Godot Version

4.3

I have a problem i cant fix it and im going crazy.

when i start the game (for debugging i draw a grid 16x16) and place the structur its not on the grid its randomly always a little bit under the grind lines.
i have a 64x64 structure that works perfekt, even if i smaller it to 64x16 its alawys on the grid.
what could be the problem ?
i checkes the settings with the 64x64 structure everything is fine (cant post more pictures)

Kind Regards :slight_smile:

Are you taking into account the grid line thickness in your calculations?

It looks like the farther down Y you calc, you are not subtracting the (lineThickness * rowCount - 1) from your running y cord calculation.