# How do I change the player's acceleration?

**URL:** <https://forums.unrealengine.com/t/how-do-i-change-the-players-acceleration/30595>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [May 20, 2015, 3:01pm UTC](https://forums.unrealengine.com/t/how-do-i-change-the-players-acceleration/30595 "2015-05-20T15:01:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_0173178d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0173178d](https://forums.unrealengine.com/u/anonymous_user_0173178d)\
**Post date:** [May 20, 2015, 3:01pm UTC](https://forums.unrealengine.com/t/how-do-i-change-the-players-acceleration/30595/1 "2015-05-20T15:01:15Z")

</div>

For my project, I want my player (basically just a ship) to only control the acceleration, not the speed directly (e.g. the player holds W and the ship accelerates up to a certain speed, holds S to slow down the then go into reverse, etc.). How could I do this? You can’t change acceleration in Blueprints directly, so I’m stuck.

---

<div class="post-metadata">

**Author:** ![Pheesh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pheesh](https://forums.unrealengine.com/u/Pheesh)\
**Post date:** [May 20, 2015, 3:46pm UTC](https://forums.unrealengine.com/t/how-do-i-change-the-players-acceleration/30595/2 "2015-05-20T15:46:18Z")

</div>

Player movement actually already works based on acceleration, not speed directly. If you click on your charactermovement component in the blueprint editor (charactermovement.h, I think?) you can lower the acceleration values so that you more slowly accelerate to the max speed. I think they are set to 2048 u/s^2 by default

---

<div class="post-metadata">

**Author:** ![fred64](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fred64/32/689467_2.png) [@fred64](https://forums.unrealengine.com/u/fred64)\
**Post date:** [May 20, 2015, 4:51pm UTC](https://forums.unrealengine.com/t/how-do-i-change-the-players-acceleration/30595/3 "2015-05-20T16:51:06Z")

</div>

alternativelY you can use a forward force. depending on your body mass (automatically calculated from the collider volume and density) the resulting accelleration will be  
A = F/m

just add some step to the force for every W and deduct it for every S…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0173178d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0173178d](https://forums.unrealengine.com/u/anonymous_user_0173178d)\
**Post date:** [May 20, 2015, 6:58pm UTC](https://forums.unrealengine.com/t/how-do-i-change-the-players-acceleration/30595/4 "2015-05-20T18:58:39Z")

</div>

I just went with the line of thought from Pheesh, and rigged up a simple Int variable to keep track of my “speed” and apply this as the scale to movement input every tick (that works fine for keeping steady speeds and such). I’ve noticed, however, that the acceleration only works properly when increasing my speed. Basically, whenever I shift gears up, per se, acceleration works over time and makes it logically slowly get faster. However, whenever I slow down, it takes place almost instantly. No slower shift over time, just _poof_, you’re stopped. My player’s max speed is 300, and the max acceleration is 75. Pictures are below of my basic speed stuff, so if you can find the error, please say so.  
 ![ShipSpeedStuff1.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/d/30d056e48388725b59ab52918725af9b017d12ee.png)

 ![ShipSpeedStuff2.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/9/5/b959a5f349c509369cbbe5e9206d2ae9425c13d5.png)

---

<div class="post-metadata">

**Author:** ![Benni.Lodge](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Benni.Lodge](https://forums.unrealengine.com/u/Benni.Lodge)\
**Post date:** [October 27, 2016, 12:07pm UTC](https://forums.unrealengine.com/t/how-do-i-change-the-players-acceleration/30595/5 "2016-10-27T12:07:13Z")

</div>

Hey guys, I followed loony123’s approach and it worked well. Any way I can increase the gear float by holding down an input? Rather than just pressing it once?
