From ae78127ca533f36ce12d188a8b6d46ef33e3d1c0 Mon Sep 17 00:00:00 2001 From: Nathan Date: Sat, 9 Sep 2017 09:34:11 +0200 Subject: rewrite the methods and member variables for the Node2D class --- doc/base/classes.xml | 80 ++++++++++++++++++++++++++++++---------------------- 1 file changed, 46 insertions(+), 34 deletions(-) diff --git a/doc/base/classes.xml b/doc/base/classes.xml index a768d14153..2a0d6287d8 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -30220,10 +30220,10 @@ - Base node for 2D system. + A 2D game object, parent of all 2D related nodes. Has a position, rotation, scale and Z-index. - Base node for 2D system. Node2D contains a position, rotation and scale, which is used to position and animate. It can alternatively be used with a custom 2D transform ([Transform2D]). A tree of Node2Ds allows complex hierarchies for animation and positioning. + A 2D game object, with a position, rotation and scale. All 2D physics nodes and sprites inherit from Node2D. Use Node2D as a parent node to move, scale and rotate children in a 2D project. Also gives control on the node's render order. @@ -30232,7 +30232,7 @@ - Apply the 'ratio' scale to the 2D node, according to its current scale value. + Multiplies the current scale by the 'ratio' vector. @@ -30241,7 +30241,7 @@ - Set the pivot position of the 2D node to 'pivot' value. This method is implemented only in some nodes that inherit Node2D. + Set the pivot position of the 2D node to 'pivot' value. Only some Node2Ds implement this method. @@ -30250,42 +30250,42 @@ - Return the rotation angle in radians needed for the 2d node to point at 'point' position. + Returns the angle between the node and the 'point' in radians. - Return the global position of the 2D node. + Returns the node's global position. - Return the global rotation in radians of the 2D node. + Returns the node's global rotation in radians. - Return the global rotation in degrees of the 2D node. + Return the node's global rotation in degrees. - Return the global scale of the 2D node. + Returns the node's global scale. - Return the position of the 2D node. + Returns the node's position. @@ -30294,35 +30294,35 @@ - Return the transform [Transform2D] calculated relatively to the parent of this 2D node. + Returns the [Transform2D] relative to this node's parent. - Return the rotation in radians of the 2D node. + Returns the node's rotation in radians. - Return the rotation in degrees of the 2D node. + Returns the node's rotation in degrees. - Return the scale of the 2D node. + Returns the node's scale. - Return the Z-index of the 2D node. + Returns the node's Z-index. @@ -30331,14 +30331,14 @@ - Apply a global translation of 'offset' to the 2D node, starting from its current global position. + Adds the 'offset' vector to the node's global position. - Return true if the Z-index value of this 2D node is relative to its parent's. Else, return false. + Returns true if this node's Z-index is relative to its parent's. Else, returns false. @@ -30347,7 +30347,7 @@ - Rotate the 2d node so it points at 'point' position. + Rotates the node so it points towards the 'point'. @@ -30358,7 +30358,7 @@ - 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. + Apply a local translation on the node's X axis based on the process's 'delta'. If 'scaled' is false, normalizes the movement. @@ -30369,7 +30369,7 @@ - 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 on the node's Y axis based on the process's 'delta'. If 'scaled' is false, normalizes the movement. @@ -30378,7 +30378,7 @@ - Apply a rotation (in radians) to the 2D node, starting from its current rotation. + Apply a rotation to the node, in radians, starting from its current rotation. @@ -30387,7 +30387,7 @@ - Set the global position of the 2D node. + Set the node's global position. @@ -30396,7 +30396,7 @@ - Set the global rotation in radians of the 2D node + Set the node's global rotation in radians. @@ -30405,7 +30405,7 @@ - Set the global rotation in degrees of the 2D node + Set the node's global rotation in degrees. @@ -30414,7 +30414,7 @@ - Set the global scale of the 2D node. + Set the node's global scale. @@ -30423,7 +30423,7 @@ - Set the global transform [Transform2D] of the 2D node. + Set the node's global [Transform2D]. @@ -30432,7 +30432,7 @@ - Set the position of the 2D node. + Set the node's position. @@ -30441,7 +30441,7 @@ - Set the rotation in radians of the 2D node. + Set the node's rotation in radians. @@ -30450,7 +30450,7 @@ - Set the rotation in degrees of the 2D node. + Set the node's rotation in degrees. @@ -30459,7 +30459,7 @@ - Set the scale of the 2D node. + Set the node's scale. @@ -30468,7 +30468,7 @@ - Set the local transform [Transform2D] of the 2D node. + Set the node's local [Transform2D]. @@ -30477,7 +30477,7 @@ - Set the Z-index value of the 2D node. + Set the node's Z-index. @@ -30486,7 +30486,7 @@ - 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. + Make the node's Z-index relative to its parent's Z-index. If this node's Z-index is 2 and its parent's effective Z-index is 3, then this node's effective Z-index will be 2 + 3 = 5. @@ -30511,34 +30511,46 @@ - Apply a local translation of 'offset' to the 2D node, starting from its current local position. + Translate the node locally by the 'offset' vector, starting from its current local position. + Global position. + Global rotation in radians. + Global rotation in degrees. + Global scale. + Global [Transform2D]. + Position, relative to the node's parent. + Rotation in radians. + Rotation in degrees. + Rotation in degrees. + Local [Transform2D]. + Z-index. Controls the order in which the nodes render. A node with a higher Z-index will display in front of others. + Make the node's Z-index relative to its parent's Z-index. If this node's Z-index is 2 and its parent's effective Z-index is 3, then this node's effective Z-index will be 2 + 3 = 5. -- cgit v1.2.3