Browse Source

Merge pull request #33229 from Jummit/document-force_update_transform

Document force_update_transform
Rémi Verschelde 6 năm trước cách đây
mục cha
commit
d93201b27f

+ 1 - 0
doc/classes/CanvasItem.xml

@@ -363,6 +363,7 @@
 			<return type="void">
 			<return type="void">
 			</return>
 			</return>
 			<description>
 			<description>
+				Forces the transform to update. Transform changes in physics are not instant for performance reasons. Transforms are accumulated and then set. Use this if you need an up-to-date transform when doing physics operations.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="get_canvas" qualifiers="const">
 		<method name="get_canvas" qualifiers="const">

+ 1 - 0
doc/classes/Spatial.xml

@@ -15,6 +15,7 @@
 			<return type="void">
 			<return type="void">
 			</return>
 			</return>
 			<description>
 			<description>
+				Forces the transform to update. Transform changes in physics are not instant for performance reasons. Transforms are accumulated and then set. Use this if you need an up-to-date transform when doing physics operations.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="get_parent_spatial" qualifiers="const">
 		<method name="get_parent_spatial" qualifiers="const">