path.current.tween(
{
"segments[0].point": pathTo[0],
"segments[1].point": pathTo[1],
......
},
1000
);
Is it possible to make it not a string or be able to pass the index in the loop or change it? As we have lots of points.
path.current.segments[i].tween(
{
point: pathTo[i],
},
1000
);
It works quite well if its not the path here:
// for (let i = 0; i < pointsArray.current.length; i++) {
// pointsArray.current[i].tween(
// {
// position: pathTo[i],
// },
// 1000
// );
Thank you for quick response!
Alyona