# How to turn in the direction of movement?

**URL:** <https://forum.babylonjs.com/t/how-to-turn-in-the-direction-of-movement/23020>\
**Category:** Questions\
**Created:** [August 12, 2021, 10:03am UTC](https://forum.babylonjs.com/t/how-to-turn-in-the-direction-of-movement/23020 "2021-08-12T10:03:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![musk](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/musk/32/17156_2.png) [@musk](https://forum.babylonjs.com/u/musk)\
**Post date:** [August 12, 2021, 10:03am UTC](https://forum.babylonjs.com/t/how-to-turn-in-the-direction-of-movement/23020/1 "2021-08-12T10:03:05Z")

</div>

Hi All, I hope to make the car move towards a goal every two seconds. How to make him have a fast animation of turning in the forward direction every time he starts moving. I don’t know how to calculate turning.  
pg: [https://playground.babylonjs.com/#BB9HFS#1](https://playground.babylonjs.com/#BB9HFS#1)  
( In addition, is there any way to make each driving animation look smoother? Not change the target point update frequency)

---

<div class="post-metadata">

**Author:** ![CornelioD](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/corneliod/32/15799_2.png) [@CornelioD](https://forum.babylonjs.com/u/CornelioD)\
**Post date:** [August 12, 2021, 2:29pm UTC](https://forum.babylonjs.com/t/how-to-turn-in-the-direction-of-movement/23020/2 "2021-08-12T14:29:47Z")

</div>

Did you try looking there: [Building a Track for a Carriage to Follow | Babylon.js Documentation](https://doc.babylonjs.com/guidedLearning/workshop/Track)

---

<div class="post-metadata">

**Author:** ![musk](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/musk/32/17156_2.png) [@musk](https://forum.babylonjs.com/u/musk)\
**Post date:** [August 13, 2021, 2:00am UTC](https://forum.babylonjs.com/t/how-to-turn-in-the-direction-of-movement/23020/3 "2021-08-13T02:00:06Z")

</div>

Thanks. Yes, it can make animation look smoother. But it may not apply to my function. my target point of each update is from websocket. So I dont know how to plan such a curve.
