What it does
math.smoothstep takes e0, e1 and x.
Signature
math.smoothstep(e0, e1, x)Arguments
e0e1x
Example · generated
function update(dt) { math.smoothstep(1, 1, 0);}math.smoothstep is called with values of the shape its signature asks for. The code sits in update(dt), which the engine calls every frame: dt is the time since the last one, in seconds.