# How to get the acceleration of a vehicle

**URL:** <https://forums.unrealengine.com/t/how-to-get-the-acceleration-of-a-vehicle/473897>\
**Category:** World Creation\
**Tags:** vehicle, unreal-engine, acceleration, Physics, question\
**Created:** [November 3, 2020, 7:54pm UTC](https://forums.unrealengine.com/t/how-to-get-the-acceleration-of-a-vehicle/473897 "2020-11-03T19:54:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_e3e14dae1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e3e14dae1](https://forums.unrealengine.com/u/anonymous_user_e3e14dae1)\
**Post date:** [November 3, 2020, 7:54pm UTC](https://forums.unrealengine.com/t/how-to-get-the-acceleration-of-a-vehicle/473897/1 "2020-11-03T19:54:38Z")

</div>

Hi everyone, I’m new with Unreal Engine, I hope this is the correct section.  
I’ve implemented a car with the tutorial “Introduction to Vehicles” and it works fine.  
Now, I have to implement an IMU sensor, so I need the current values of the vehicle accelerations. Is there a way to obtain these values (for both axes) directly from the car in Unreal?  
I could calculate them from the pose, but I would prefer more accurate data.  
Thanks all a lot

---

<div class="post-metadata">

**Author:** ![Ruffhaus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ruffhaus/32/1194663_2.png) [@Ruffhaus](https://forums.unrealengine.com/u/Ruffhaus)\
**Post date:** [November 4, 2020, 12:58am UTC](https://forums.unrealengine.com/t/how-to-get-the-acceleration-of-a-vehicle/473897/2 "2020-11-04T00:58:49Z")

</div>

Something like this:

 ![321034-acceleration.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/6/5/8652a92c2d431860149bbaa78e392b2dfa8e3ee1.png)

If that runs every frame it will store your velocity from that frame minus your velocity from the previous frame. It will also give you the direction, you can remove that absolute to get a world space result.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e3e14dae1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e3e14dae1](https://forums.unrealengine.com/u/anonymous_user_e3e14dae1)\
**Post date:** [November 4, 2020, 3:44pm UTC](https://forums.unrealengine.com/t/how-to-get-the-acceleration-of-a-vehicle/473897/3 "2020-11-04T15:44:55Z")

</div>

Thank you a lot. I have another question related to this. In this way I obtain the real values of the accelerations, and it’s ok, but instead how could I implement a function that emulates a real IMU sensor? Something that can emulate also the IMU error model (or at least an accelerometer).  
Thank you very much for helping
