# How to make whees turn by using a spline

**URL:** <https://forums.unrealengine.com/t/how-to-make-whees-turn-by-using-a-spline/465170>\
**Category:** World Creation\
**Tags:** wheels, car, unreal-engine, Spline, question\
**Created:** [May 14, 2020, 8:46am UTC](https://forums.unrealengine.com/t/how-to-make-whees-turn-by-using-a-spline/465170 "2020-05-14T08:46:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_90a9a9bf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_90a9a9bf](https://forums.unrealengine.com/u/anonymous_user_90a9a9bf)\
**Post date:** [May 14, 2020, 8:46am UTC](https://forums.unrealengine.com/t/how-to-make-whees-turn-by-using-a-spline/465170/1 "2020-05-14T08:46:01Z")

</div>

Hello, i am working on a school project, the project is to make a self driving buss to drive around in a track using a spline. My problem is to make the front wheels on the buss turn with the spline. I am using the spline blueprint from this tutorial [Ue4 Tutorial - Moving an Object along a path using a Spline Track - YouTube](https://www.youtube.com/watch?v=bWXI91FdMtk)  
Thanks in advance i am really looking forward to all your help.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 14, 2020, 9:11am UTC](https://forums.unrealengine.com/t/how-to-make-whees-turn-by-using-a-spline/465170/2 "2020-05-14T09:11:07Z")

</div>

You can set the relative rotation of the wheels by how far you are along the spline:

 ![301887-rot.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/8/6/c86aaae120bc753224506dfb0992be110618cd2a.jpeg)

I don’t know your particular setup, but you have to choose the right axis, of course. And maybe your TL doesn’t go from 0-1, I don’t know. Also, you will have to multiply the 360 by some constant to get a realistic number of revolutions, in this state you will get one revolution for the whole spline 🙂

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [May 14, 2020, 10:43am UTC](https://forums.unrealengine.com/t/how-to-make-whees-turn-by-using-a-spline/465170/3 "2020-05-14T10:43:41Z")

</div>

I wonder if OP wants the wheels to spin or to simply follow spline direction, as in turn Z(Yaw) as the bus keeps rolling down the spline.

We’ll find out soon enough.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 14, 2020, 10:46am UTC](https://forums.unrealengine.com/t/how-to-make-whees-turn-by-using-a-spline/465170/4 "2020-05-14T10:46:53Z")

</div>

You could be right…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_90a9a9bf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_90a9a9bf](https://forums.unrealengine.com/u/anonymous_user_90a9a9bf)\
**Post date:** [May 14, 2020, 11:17am UTC](https://forums.unrealengine.com/t/how-to-make-whees-turn-by-using-a-spline/465170/5 "2020-05-14T11:17:46Z")

</div>

Sorry for the confusing description, I want the wheels to follow the splines direction i z (Yaw). I have already made the code for them to spin on the ground around the x and y axis. Thanks for the answers again!

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 14, 2020, 11:22am UTC](https://forums.unrealengine.com/t/how-to-make-whees-turn-by-using-a-spline/465170/6 "2020-05-14T11:22:10Z")

</div>

Then it would be along the lines of:

 ![301894-rot2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/8/4/784681df601510cda5bbba22d7ae9a2d034eb9fd.jpeg)

( with something meaningful plugged into the distance obviously )
