How do I get the position and id of a specific cell from a Tileset that collided with a raycast?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By lucasfazzi

So, I read the documentation and I’m not sure which function I have to call to get the id / position of a specific Tileset cell after it collides with a raycast; the closest I got was get_used_cells(), but it returns the information for all cells in the tileset.
what would be the best way to get information about just the cell that is colliding?

:bust_in_silhouette: Reply From: njamster

See this answer.



lucasfazzi | 2020-09-21 22:12