Godot Version
Godot 4.x
Question
I am using TileMapLayer.get_cell_tile_data(coors).
To get coors I use Raycast2D.get_collision_point().
The Raycast casts halfway into the tile I want but the collision point comes out as exactly on the border. This point is returns the wrong tile.
For example with the ray pointing to the left
ABRay
When I move the ray into cell B the ray extends halfway into cell A. The is the tile I want but the collision point is actually exactly on the border between A and B and the tile data that I get is B.
Am I doing something wrong to cause this or is this normal behaviour and I need to adjust (in the example move coors.x -= 1)?