# Phaser3 - Add acceleration and drag to vehicle on Physics arcade engine

**URL:** <https://phaser.discourse.group/t/phaser3-add-acceleration-and-drag-to-vehicle-on-physics-arcade-engine/8240>\
**Category:** Phaser 3\
**Created:** [November 29, 2020, 4:30pm UTC](https://phaser.discourse.group/t/phaser3-add-acceleration-and-drag-to-vehicle-on-physics-arcade-engine/8240 "2020-11-29T16:30:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![balmofgilead](https://avatars.discourse-cdn.com/v4/letter/b/7cd45c/32.png) [@balmofgilead](https://phaser.discourse.group/u/balmofgilead)\
**Post date:** [November 29, 2020, 4:30pm UTC](https://phaser.discourse.group/t/phaser3-add-acceleration-and-drag-to-vehicle-on-physics-arcade-engine/8240/1 "2020-11-29T16:30:32Z")

</div>

I am making a simple top down car game in Phaser3. At the moment, my car moves at a constant speed. However, I would like it to behave more realistically, with elements such as drag/friction/acceleration applied to it, a bit like the example at [http://domasx2.github.io/gamejs-box2d-car-example/](http://domasx2.github.io/gamejs-box2d-car-example/). How do I get it to behave this way using the Phaser Physics arcade engine (which the rest of my game currently uses).

I have tried to implement this here: [stackblitz.com/edit/phaser3-typescript-d6zbzf](https://stackblitz.com/edit/phaser3-typescript-d6zbzf) but the acceleration doesn’t continue when I let go of the forward key. Also the brake doesn’t seem to be working. Could someone please have a look and help me?

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [December 1, 2020, 5:40pm UTC](https://phaser.discourse.group/t/phaser3-add-acceleration-and-drag-to-vehicle-on-physics-arcade-engine/8240/2 "2020-12-01T17:40:37Z")

</div>

> **[phaser3-typescript-s6p6jo - StackBlitz](https://stackblitz.com/edit/phaser3-typescript-s6p6jo)**
>
> Top-down car game with acceleration and drag

---

<div class="post-metadata">

**Author:** ![balmofgilead](https://avatars.discourse-cdn.com/v4/letter/b/7cd45c/32.png) [@balmofgilead](https://phaser.discourse.group/u/balmofgilead)\
**Post date:** [December 2, 2020, 7:29pm UTC](https://phaser.discourse.group/t/phaser3-add-acceleration-and-drag-to-vehicle-on-physics-arcade-engine/8240/3 "2020-12-02T19:29:14Z")

</div>

Thank you so much this is excellent!
