Skip to content

Commit d1afbaf

Browse files
authored
Merge pull request #11294 from Calinou/upgrading-to-godot-4.5-tilemaplayer-physics-chunking
Document TileMapLayer physics chunking caveats in Upgrading to Godot 4.5
2 parents bc2e347 + d8ec75b commit d1afbaf

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tutorials/migrating/upgrading_to_godot_4.5.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,18 @@ Behavior changes
190190

191191
In 4.5 some behavior changes have been introduced, which might require you to adjust your project.
192192

193+
TileMapLayer
194+
~~~~~~~~~~~~
195+
196+
:ref:`TileMapLayer.get_coords_for_body_rid() <class_TileMapLayer_method_get_coords_for_body_rid>`
197+
will return different values in 4.5 compared to 4.4,
198+
as TileMapLayer physics chunking is enabled by default. Higher values of
199+
:ref:`TileMapLayer.physics_quadrant_size <class_TileMapLayer_property_physics_quadrant_size>`
200+
will make this function less precise. To get the exact cell coordinates like in 4.4 and prior
201+
versions, you need to set
202+
:ref:`TileMapLayer.physics_quadrant_size <class_TileMapLayer_property_physics_quadrant_size>`
203+
to ``1``, which disables physics chunking.
204+
193205
3D Model Import
194206
~~~~~~~~~~~~~~~
195207

0 commit comments

Comments
 (0)