Click or drag to resize

MathfSmoothStep Method

Returns a number smoothly interpolated between `from` and `to`, based on the `weight`. Similar to Lerp(Single, Single, Single), but interpolates faster at the beginning and slower at the end.

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

Parameters

from
Type: SystemSingle
The start value for interpolation.
to
Type: SystemSingle
The destination value for interpolation.
weight
Type: SystemSingle
A value representing the amount of interpolation.

Return Value

Type: Single
The resulting value of the interpolation.
See Also