Click or drag to resize

Vector2MoveToward Method

Moves this vector toward `to` by the fixed `delta` amount.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Vector2 MoveToward(
	Vector2 to,
	float delta
)

Parameters

to
Type: GodotVector2
The vector to move towards.
delta
Type: SystemSingle
The amount to move towards by.

Return Value

Type: Vector2
The resulting vector.
See Also