Explorar el Código

Document shape metadata for `TileMap`

Andrii Doroshenko (Xrayez) hace 4 años
padre
commit
0c2dbd01dc
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      doc/classes/TileMap.xml

+ 1 - 0
doc/classes/TileMap.xml

@@ -5,6 +5,7 @@
 	</brief_description>
 	<description>
 		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.
 	</description>
 	<tutorials>
 		<link title="Using Tilemaps">https://docs.godotengine.org/en/latest/tutorials/2d/using_tilemaps.html</link>