Skip to main content

Mathf.SmoothStep(number from, number to, number t)

Interpolates between min and max with smoothing at the limits.

Parameters:

NameTypeDescription
fromnumberfrom
tonumberto
tnumbert

Returns:

typeDescription
numberInterpolated value between min and max with smoothing at the limits.

Usage

---@type number
local from;

---@type number
local to;

---@type number
local t;


local val0 = Mathf:SmoothStep(from, to, t)