TileMap.mapToWorld

Returns the local position of the top left corner of the cell corresponding to the given tilemap (grid-based) coordinates. To get the global position, use Node2D.toGlobal:

More...
struct TileMap
@nogc nothrow const
Vector2
mapToWorld
(
in Vector2 map_position
,
in bool ignore_half_ofs = false
)

Detailed Description

var local_position = my_tilemap.map_to_world(map_position) var global_position = my_tilemap.to_global(local_position)

Optionally, the tilemap's half offset can be ignored.

Meta