In the example from the docs it looks like the distance between the points is always the same. In my case the distance changes if the path forms a curve or not which makes the animation weird. Any ideas how to achieve the animation (uScale) for all the points?
Hello!
As @Cedric wrote:
You have to make sure that the distances between the points are the same. The part of the line between two points is called a line segment in the world of GreasedLine. To ensure uniform line segment lengths you can use the GreasedLineTools.SegmentizeLineBySegmentLength function.
However your points are very very close to each other so at first it’s better to remove some of them. Then you can call the mentioned function which will cut the line into segments with uniform lengths.
@roland Thanks for the explanation and for the working PG.
You can still see the difference between the curve and the straight line but I guess it’s a matter of playing a little bit with the numbers, for example: