cell
Retrieves the cell corresponding to the given query point in the grid. The method calculates the grid coordinates for the query point and returns the cell found at those coordinates, if it exists.
Return
The Cell
corresponding to the given query point, or null
if no cell exists at the calculated coordinates.
Parameters
query
The point in 2D space, represented as a Vector2
, for which to retrieve the corresponding cell.