I did the straight path code with an array of points and calculating the way from each point to next point until end of path.
But how to round the path with a certain precision that it would become like the last 3 on the picture?
I assume that it calculates distances from point to next point and then splits the distance into more points and then "somehow" round the path.
But i think it should visit each point and not round it towards the inside and away from a point. Maybe this function could be used
Code: Select all
curve = love.math.newBezierCurve( vertices )
Code: Select all
x, y = BezierCurve:evaluate( t ).