From 0c2dbd01dc407fd8b60de56a32a3d2a8a716ed9c Mon Sep 17 00:00:00 2001 From: "Andrii Doroshenko (Xrayez)" Date: Fri, 22 Jan 2021 20:03:09 +0200 Subject: [PATCH] Document shape metadata for `TileMap` --- doc/classes/TileMap.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/TileMap.xml b/doc/classes/TileMap.xml index c500052592e..2b918b9db88 100644 --- a/doc/classes/TileMap.xml +++ b/doc/classes/TileMap.xml @@ -5,6 +5,7 @@ Node for 2D tile-based maps. Tilemaps use a [TileSet] which contain a list of tiles (textures plus optional collision, navigation, and/or occluder shapes) which are used to create grid-based maps. + When doing physics queries against the tilemap, the cell coordinates are encoded as [code]metadata[/code] for each detected collision shape returned by methods such as [method PhysicsDirectSpaceState2D.intersect_shape], [method PhysicsDirectBodyState2D.get_contact_collider_shape_metadata] etc. https://docs.godotengine.org/en/latest/tutorials/2d/using_tilemaps.html