Click or drag to resize

Curve2DGetClosestPoint Method

Returns the closest baked point (in curve's local space) to to_point.

to_point must be in this curve's local space.

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

Parameters

toPoint
Type: GodotVector2

[Missing <param name="toPoint"/> documentation for "M:Godot.Curve2D.GetClosestPoint(Godot.Vector2)"]

Return Value

Type: Vector2

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

See Also