# Animating To a Path

**URL:** <https://forum.babylonjs.com/t/animating-to-a-path/31438>\
**Category:** Questions\
**Tags:** documentation, tutorial\
**Created:** [June 17, 2022, 1:40am UTC](https://forum.babylonjs.com/t/animating-to-a-path/31438 "2022-06-17T01:40:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShareQiu1994](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/shareqiu1994/32/25102_2.png) [@ShareQiu1994](https://forum.babylonjs.com/u/ShareQiu1994)\
**Post date:** [June 17, 2022, 1:40am UTC](https://forum.babylonjs.com/t/animating-to-a-path/31438/1 "2022-06-17T01:40:46Z")

</div>

hello all  
I am referring to [https://playground.babylonjs.com/#N9IZ8M#1](https://playground.babylonjs.com/#N9IZ8M#1)[https://playground.babylonjs.com/#KBS9I5#81](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](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](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？

---

<div class="post-metadata">

**Author:** ![ShareQiu1994](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/shareqiu1994/32/25102_2.png) [@ShareQiu1994](https://forum.babylonjs.com/u/ShareQiu1994)\
**Post date:** [June 17, 2022, 3:04am UTC](https://forum.babylonjs.com/t/animating-to-a-path/31438/4 "2022-06-17T03:04:22Z")

</div>

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

> **[Babylon.js Playground](https://playground.babylonjs.com/#1YD970%23464)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [June 17, 2022, 7:51pm UTC](https://forum.babylonjs.com/t/animating-to-a-path/31438/5 "2022-06-17T19:51:45Z")

</div>

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