Animating To a Path

hello all
I am referring to https://playground.babylonjs.com/#N9IZ8M#1 https://playground.babylonjs.com/#KBS9I5#81 Implement model trajectory

My only known condition is the path coordinates of the model.
https://playground.babylonjs.com/#N9IZ8M#1 In this example, the path motion cannot be realized by adding coordinates. also need to add track.push(new slide(xxx, xx)) , but I don’t know how to add it dynamically

in https://playground.babylonjs.com/#KBS9I5#81
Similarly, I only know the coordinates of the path, and I can’t get track Value of push track.push(new walk(xx, xx));

How do I realize the motion trajectory of the model when I only know the coordinates?

I optimized it again, but there was still a problem with the direction when I cycled the second motion path

I am not totally sure about what you are looking to do :frowning: could you describe the use case a bit more ?