GridMap - Centre Y is it broke?

Godot Version

4.6

Question

Just started looking more into GridMap and came across a this discovery today.

When I have cube with centre of mass at middle but I export it as mesh library for GridMap it have top face on (0,1,0) with Centre Y On
when I disable Centre Y top face of cube goes to (0, 0.5, 0) - which I would assume would make sense for first option when its centered .

Is this bug , or purpose how it working ?

When “center” is enabled the origin of the mesh is placed at the center of the cell, otherwise it’s placed at the edge. It works as intended.

1 Like