Skip to content

Commit

Permalink
Merge pull request godotengine#30049 from randall-fulton/docs/spatial…
Browse files Browse the repository at this point in the history
…-transform

Call out scaling in Spatial.translate docstring
  • Loading branch information
akien-mga authored Jul 4, 2019
2 parents b25d111 + bdf51e8 commit 7b569e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/classes/Spatial.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 7b569e9

Please sign in to comment.