A 2D game object, parent of all 2D related nodes. Has a position, rotation, scale and Z-index. 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. Multiplies the current scale by the 'ratio' vector. Sets the node's pivot position. Returns the angle between the node and the 'point' in radians. Returns the node's global position. Returns the node's global rotation in radians. Return the node's global rotation in degrees. Returns the node's global scale. Returns the node's position. Returns the [Transform2D] relative to this node's parent. Returns the node's rotation in radians. Returns the node's rotation in degrees. Returns the node's scale. Returns the node's Z-index. Adds the 'offset' vector to the node's global position. Returns true if this node's Z-index is relative to its parent's. Else, returns false. Rotates the node so it points towards the 'point'. Applies a local translation on the node's X axis based on the [method Node._process]'s [code]delta[/code]. If [code]scaled[/code] is false, normalizes the movement. Applies a local translation on the node's Y axis based on the [method Node._process]'s [code]delta[/code]. If [code]scaled[/code] is false, normalizes the movement. Applies a rotation to the node, in radians, starting from its current rotation. Sets the node's global position. Sets the node's global rotation in radians. Sets the node's global rotation in degrees. Sets the node's global scale. Sets the node's global [Transform2D]. Sets the node's position. Sets the node's rotation in radians. Sets the node's rotation in degrees. Sets the node's scale. Sets the node's local [Transform2D]. Sets the node's Z-index. Makes 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. Converts a local point's coordinates to global coordinates. Converts a global point's coordinates to local coordinates. Translates the node by the given [code]offset[/code] in local coordinates. 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.