Skip to content

Instantly share code, notes, and snippets.

@alex-golovanov
alex-golovanov / CatmullRomSpline.lua
Last active April 23, 2023 20:13
Curve Fitting - Catmull-Rom spline
function smooth( points, steps )
if #points < 3 then
return points
end
local steps = steps or 5
local spline = {}
local count = #points - 1