Преглед на файлове

Merge pull request #30049 from randall-fulton/docs/spatial-transform

Call out scaling in Spatial.translate docstring
Rémi Verschelde преди 6 години
родител
ревизия
7b569e91c0
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      doc/classes/Spatial.xml

+ 1 - 0
doc/classes/Spatial.xml

@@ -274,6 +274,7 @@
 			</argument>
 			<description>
 				Changes the node's position by given offset [Vector3].
+				Note that the translation [code]offset[/code] is affected by the node's scale, so if scaled by e.g. [code](10, 1, 1)[/code], a translation by an offset of [code](2, 0, 0)[/code] would actually add 20 ([code]2 * 10[/code]) to the X coordinate.
 			</description>
 		</method>
 		<method name="translate_object_local">