GE Lua Documentation

Press F to search!

smootherstep

Definition


-- @/lua/common/mathlib.lua:1207

function smootherstep(x)
  return min(max(x*x*x*(x*(x*6 - 15) + 10), 0), 1)
end

Callers

@/lua/ge/extensions/gameplay/crawl/boundary.lua

            local currentScale = lerp(minScale, maxScale, smootherstep(scaleT))
            local currentAlpha = lerp(0.0, 1.0, smootherstep(alphaT))
            local currentScale = lerp(minScale, maxScale, smootherstep(scaleT))
            local currentAlpha = lerp(0.0, 1.0, smootherstep(alphaT))
            local alphaT = 1.0 - (objectInfo.animationTimer / fadeOutDuration)
            local currentAlpha = lerp(0.0, 1.0, smootherstep(alphaT))
@/lua/ge/extensions/scenario/raceMarkers/sideMarker.lua
  if self.sides then
    local sideSize = lerp(1*self.radius,sideToDistantRatio, smootherstep(distantFade))
    self.sides:setScale(vec3(self.radius, self.radius, self.radius))