Closed rcorre closed 1 year ago
I have trouble to understand what the issue is here. If I slow down the video it updates the preview the very second the mouse hovers over a new grid cell to a position that I would expect.
The only thing that I do not see aligned with the grid is the item visuals from the MeshLibrary.
Sorry, I was misunderstanding how this should work. I was trying to have the grid itself centered so that e.g. there is a tile centered at the global position (0, 0). I think what I actually wanted to do was change the Grid transform, not the centering of the cells. Thanks!
Godot version
v4.0.2.stable.arch_linux
System information
Linux
Issue description
Mouse movement and selection is not well aligned with the grid when the cells are not centered.
https://github.com/godotengine/godot/assets/2496231/c070d9b8-0b0f-4bae-b69e-83bc374dffc8
Steps to reproduce
GridMap
CellSize
to1,1,1
CenterX,CenterY,CenterZ
tofalse
ceil
of the mouse coordinate rather thanround
, if that makes sense)Minimal reproduction project
N/A