Click or drag to resize

Node2DToLocal Method

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.

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

Parameters

globalPoint
Type: GodotVector2

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

Return Value

Type: Vector2

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

See Also