Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | SigilQuiver |
say I have an offset that I can use to interpolate with a curve2D, how would I get all of the points leading up to that offset?
I have tried the following code, which has been unsuccessfull:
func add_curve_points():
var curve = $Path2D.curve
var offset = curve.get_baked_length()*t
var baked = curve.interpolate_baked(offset)
for point in curve.get_baked_points():
add_point(point)
if point == baked:
break