Hello, I am trying to replicate this sort of line in a bezier curve going from one point to another. I’m not sure exactly what to search for because I don’t know what the name of this type of effect is, so I am making a post on here and hopefully I get some help.
local p0 = Vector3.new()
local p2 = Vector3.new()
local Height = 5
local p1 = p0:Lerp(p2, 0,5) + Vector3.yAxis*Height*2
local function quadraticBezier(t: number)
return (1 - t)^2 * p0 + 2 * (1 - t) * t * p1 + t^2 * p2
end
In that code, you only need the 2 points of the arc and the height it will have (assuming the arc is uniform and both points are at the same height), you only have to give the function the time from 0 to 1.