Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Script made by Oysi
- function slerp(a, b, t)
- local dot = a:Dot(b)
- if dot <= -1 or dot >= 1 then
- return b
- else
- local o = math.acos(dot)
- return (a*math.sin(o*(1 - t)) + b*math.sin(o*t)) / math.sin(o)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement