Click or drag to resize

MathfMoveToward Method

Moves `from` toward `to` by the `delta` value. Use a negative delta value to move away.

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

Parameters

from
Type: SystemSingle
The start value.
to
Type: SystemSingle
The value to move towards.
delta
Type: SystemSingle
The amount to move by.

Return Value

Type: Single
The value after moving.
See Also