Skip to content

"s" property in inOutElastic defined in global scope, should be local #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
notdotscott opened this issue Nov 14, 2013 · 1 comment

Comments

@notdotscott
Copy link

local function inOutElastic(t, b, c, d, a, p)
if t == 0 then return b end

t = t / d * 2

if t == 2 then return b + c end

if not p then p = d * (0.3 * 1.5) end
if not a then a = 0 end

if not a or a < abs(c) then
a = c
s = p / 4
else
s = p / (2 * pi) * asin(c / a)
end

if t < 1 then
t = t - 1
return -0.5 * (a * pow(2, 10 * t) * sin((t * d - s) * (2 * pi) / p)) + b
else
t = t - 1
return a * pow(2, -10 * t) * sin((t * d - s) * (2 * pi) / p ) * 0.5 + c + b
end
end

@C3pa
Copy link

C3pa commented Oct 19, 2024

Fixed by: 4387758.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants