From 87aa1282285fe4c71caa82740b7f1d6ddb5643b6 Mon Sep 17 00:00:00 2001 From: Julian Murgia - StraToN Date: Tue, 26 Apr 2016 22:46:52 +0200 Subject: [PATCH] Documented Node2D --- doc/base/classes.xml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/doc/base/classes.xml b/doc/base/classes.xml index ec241603d55..de19b1c8cad 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -20425,21 +20425,21 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - Set the position of the 2d node. + Set the position of the 2D node. - Set the rotation of the 2d node. + Set the rotation of the 2D node. - Set the scale of the 2d node. + Set the scale of the 2D node. @@ -20467,6 +20467,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Apply a 'radians' rotation to the 2D node, starting from its current rotation. @@ -20475,6 +20476,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Apply a local translation on X axis to the 2D node according to the 'delta' of the process. If 'scaled' is false, the movement is normalized. @@ -20483,30 +20485,35 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Apply a local translation on Y axis to the 2D node according to the 'delta' of the process. If 'scaled' is false, the movement is normalized. + Apply a local translation of 'offset' to the 2D node, starting from its current local position. + Apply a global translation of 'offset' to the 2D node, starting from its current global position. + Apply the 'ratio' scale to the 2D node, according to its current scale value. + Set the global position of the 2D node to 'pos'. @@ -20520,18 +20527,21 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Set the local transform [Matrix32] of the 2D node. + Set the global transform [Matrix32] of the 2D node. + Rotate the 2d node so it points at 'point' position. @@ -20540,36 +20550,42 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Return the rotation angle needed for the 2d node to point at 'point' position. + Set the Z-index value of the 2D node. + Return the Z-index of the 2D node. + Set the Z-index value as relative to the parent node of this 2D node. Thus, if this 2D node's Z-index value is 2 and its parent's effective Z-index is 3, then the effective Z-index value of this 2D node would be 3 + 2 = 5. + Return true if the Z-index value of this 2D node is relative to its parent's. Else, return false. + Set the pivot position of the 2D node to 'pivot' value. This method is implemented only in some nodes that inherit Node2D. @@ -20578,6 +20594,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Return the transform [Matrix32] calculated relatively to the parent of this 2D node.