# How to set a top speed for a Simple Wheeled Vehicle Movement Component?

**URL:** <https://forums.unrealengine.com/t/how-to-set-a-top-speed-for-a-simple-wheeled-vehicle-movement-component/431061>\
**Category:** World Creation\
**Tags:** vehicle, unreal-engine, Physics, UE4, Blueprint, question\
**Created:** [August 6, 2018, 11:42am UTC](https://forums.unrealengine.com/t/how-to-set-a-top-speed-for-a-simple-wheeled-vehicle-movement-component/431061 "2018-08-06T11:42:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_a775f7a0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a775f7a0](https://forums.unrealengine.com/u/anonymous_user_a775f7a0)\
**Post date:** [August 6, 2018, 11:42am UTC](https://forums.unrealengine.com/t/how-to-set-a-top-speed-for-a-simple-wheeled-vehicle-movement-component/431061/1 "2018-08-06T11:42:11Z")

</div>

Hey guys,

I’ve been building my own vehicle using the Simple Wheeled Vehicle Movement Component since my vehicle uses more than 4 wheels (8 in total). I’ve managed to set it up so that the vehicle moves forward and can turn and the functionality works and is there. However, the vehicle lacks a top speed. I don’t have access to gear-change timing and other nuanced variables like are present in the UE4 sample vehicle blueprint and I’m at a loss in how to implement a top speed into my blueprint. I’ve tried getting the vector length and using that to change velocity but I couldn’t get that to work, I’ve tried implementing a branch that applies different floats to the drive torque of the wheels depending on the velocity of the vehicle but I couldn’t get that to take either. I cant seem to find much documentation out there for this particular movement component and it has me stumped 😕

I’ve included screenshots of my functional forward input event and my current BP hierarchy for you guys to check out. Any help would be greatly appreciated!

 ![249625-drivesetup.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/0/cb030898eaa4e961b34c0654bcb5ac98325716fb.png)

 ![249626-swv-bp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/3/8c3191b1135a1ee3eccd857004770331fb7827ea.png)

---

<div class="post-metadata">

**Author:** ![Ex0dus13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ex0dus13](https://forums.unrealengine.com/u/Ex0dus13)\
**Post date:** [February 26, 2019, 6:10pm UTC](https://forums.unrealengine.com/t/how-to-set-a-top-speed-for-a-simple-wheeled-vehicle-movement-component/431061/2 "2019-02-26T18:10:18Z")

</div>

Late reply but i figured this out last night and it might help anyone else that googles this.

 ![269679-cargame-getspeed.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/a/c6a65d75f1b6196e2b480d6e58804510943fb225.jpeg)

Here im getting the current speed of the vehicle, and storing it in a variable from a function on the car. Mines a string, because i use that for a in-game speedometer, but you could use an Int.

 ![269680-cargame-capspeed.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/6/2/e6273f1ec6fa3a0e05012beef5338ce5aacacff6.jpeg)

From here, im checking what that varible is. If its above my threshold, i set the Drive Torque to 1, otherwise i let it accelerate. For your blueprint, id just use the “ForLoop” node, and set you indexs to match all 8 tires (you would do 0-7)  
Im not totally confident thats the “right” way, but it works well enough.

---

<div class="post-metadata">

**Author:** ![RostRazzor\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RostRazzor\_1](https://forums.unrealengine.com/u/RostRazzor_1)\
**Post date:** [July 24, 2019, 5:01pm UTC](https://forums.unrealengine.com/t/how-to-set-a-top-speed-for-a-simple-wheeled-vehicle-movement-component/431061/3 "2019-07-24T17:01:25Z")

</div>

Thank you, i looking long enough for my n-wheeled vehicle’s
