Function TileMap.worldToMap

Returns the tilemap (grid-based) coordinates corresponding to the given local position.

Vector2 worldToMap (
  const(Vector2) world_position
) nothrow @nogc const;