# How to make my velocities framerate independent?

**URL:** <https://forums.unrealengine.com/t/how-to-make-my-velocities-framerate-independent/2159802>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [November 30, 2024, 3:21pm UTC](https://forums.unrealengine.com/t/how-to-make-my-velocities-framerate-independent/2159802 "2024-11-30T15:21:39Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Nortksi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nortksi](https://forums.unrealengine.com/u/Nortksi)\
**Post date:** [December 4, 2024, 7:45pm UTC](https://forums.unrealengine.com/t/how-to-make-my-velocities-framerate-independent/2159802/7 "2024-12-04T19:45:17Z")

</div>

Eventually I found two ways to solve this issue.  
First way was to put the drag on a looping timer with a 0.01 tick:

 ![bpball2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/b/b8b80d68a8ae4f2b125585ba5b94f38e037ecdc2.jpeg)

I decided that I wanted drag to be always there, just like linear damping. After a little searching I found this post:

> [@Linear Damping towards one axis?](https://forums.unrealengine.com/t/linear-damping-towards-one-axis/385452/3):
>
> The code that handles LinearDamping is here [DyBodyCoreIntegrator.h | bodyCoreComputeUnconstrainedVelocity](https://github.com/EpicGames/UnrealEngine/blob/70bc980c6361d9a7d23f6d23ffe322a2d6ef16fb/Engine/Source/ThirdParty/PhysX3/PhysX_3.4/Source/LowLevelDynamics/src/DyBodyCoreIntegrator.h#L72) I’ve re-written it a bit to be easier to read Vector3 linearVelocity float linearDamping float deltaSeconds float linearDampingTimesDeltaSeconds = linearDamping \* deltaSeconds float linearVelocityMultiplier = Max(0.0f, 1.0f - linearDampingTimesDeltaSeconds) linearVelocity \*= linearVelocityMultiplier This uses a single float to reduce velocity in all directions. To solve your problem, th…

This helped me create a linear damping blueprint that only affected the x and y axis which is also being framerate independent.

 ![dragontick](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/9/6/b9651ab8aa6280e2ef0f78a62dc4893eaa072f64.jpeg)

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-make-my-velocities-framerate-independent/2159802)._
