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 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:
SingleThe value after moving.
See Also