Closed TestAk123 closed 3 days ago
Offset isn't the distance from point to curve, it's the distance along the curve (i.e. offset) in pixels at which the closest point is located.
This will give you what you want: curve2d_from_fs_points.sample_baked(_sum_offset)
Tested versions
System information
Godot Engine v4.3.stable.official.77dcf97d8 - https://godotengine.org Vulkan 1.3.217 - Forward Mobile - Using Device #0: AMD - Radeon RX 560 Series
Issue description
While I played around with a curve2d, I've noticed that getting closest offset via get_closest_offset() gives very difirent results than from grabing closest point via get_closest_point() and doing basic math. In this case difference is around 90%.
Steps to reproduce
Minimal reproduction project (MRP)
console.zip No idea if I done it right but here you go.