TileMapMapToWorld Method |
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 ToGlobal(Vector2):
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.
Namespace: Godot
public Vector2 MapToWorld( Vector2 mapPosition, bool ignoreHalfOfs = false )
[Missing <param name="mapPosition"/> documentation for "M:Godot.TileMap.MapToWorld(Godot.Vector2,System.Boolean)"]
[Missing <param name="ignoreHalfOfs"/> documentation for "M:Godot.TileMap.MapToWorld(Godot.Vector2,System.Boolean)"]
[Missing <returns> documentation for "M:Godot.TileMap.MapToWorld(Godot.Vector2,System.Boolean)"]