Evaluate||doc136375

September 20, 2022

Format

EaseCurve:Evaluate(time)

Describe

Gets the value of the curve at a point in time. The curve length provided by default is 1 second, and the incoming time should be between [0,1].

parameter

Variable name Type Describe
time float point of time

Return value

Type Describe
float value

Code example

Output to see how the "incubic" curve changes in 1 second

local curve = EaseCurve.new(Enum.EaseType.InCubic)

local t = 0
World.Timer(1, function()
    print(curve:Evaluate(t))
    t = t + 1 / 20
    return t <= 1
end)