Click or drag to resize

Node2DToGlobal Method

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.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Vector2 ToGlobal(
	Vector2 localPoint
)

Parameters

localPoint
Type: GodotVector2

[Missing <param name="localPoint"/> documentation for "M:Godot.Node2D.ToGlobal(Godot.Vector2)"]

Return Value

Type: Vector2

[Missing <returns> documentation for "M:Godot.Node2D.ToGlobal(Godot.Vector2)"]

See Also