From 5c6f824e7136bff5d9323cb1a804cfe8fbf9262b Mon Sep 17 00:00:00 2001 From: Avantir-Chaosfire Date: Sun, 23 Feb 2020 19:38:32 -0800 Subject: [PATCH] doc: Improve Node2D to_local/to_global description --- doc/classes/Node2D.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/classes/Node2D.xml b/doc/classes/Node2D.xml index 9f017e9aed8..d4517f05886 100644 --- a/doc/classes/Node2D.xml +++ b/doc/classes/Node2D.xml @@ -92,7 +92,7 @@ - Converts a local point's coordinates to global coordinates. + Transforms the provided local position into a position in global coordinate space. The input is expected to be local relative to the [Node2D] it is called on. e.g. Applying this method to the positions of child nodes will correctly transform their positions into the global coordinate space, but applying it to a node's own position will give an incorrect result, as it will incorporate the node's own transformation into its global position. @@ -101,7 +101,7 @@ - Converts a global point's coordinates to local coordinates. + Transforms the provided global position into a position in local coordinate space. The output will be local relative to the [Node2D] it is called on. e.g. It is appropriate for determining the positions of child nodes, but it is not appropriate for determining its own position relative to its parent.