# Add force independent of framerate

**URL:** <https://forums.unrealengine.com/t/add-force-independent-of-framerate/2146443>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [November 23, 2024, 4:29pm UTC](https://forums.unrealengine.com/t/add-force-independent-of-framerate/2146443 "2024-11-23T16:29:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tolacipeetahi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tolacipeetahi](https://forums.unrealengine.com/u/tolacipeetahi)\
**Post date:** [November 23, 2024, 4:29pm UTC](https://forums.unrealengine.com/t/add-force-independent-of-framerate/2146443/1 "2024-11-23T16:29:26Z")

</div>

I see the many topics on it, many explanations of the problem, which I feel I understand _why_ it doesn’t work as I’d expect, physics are calculated by frame, if you want to achieve the enlightened frame rate independent physics it needs to be done using delta time.

Now, how do I implement it?

This is my starting point, I have a ball unaffected by gravity but affected by physics, when I hold shift it adds force to the ball. Currently it moves very slowly at 15 fps, and very quickly at 120. I want the ball to move at the same speed regardless of fps.

My player character adding force to the ball

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/2/1323a528aa1373abae2e41773e1764321742493a.png)

this is the macro I’m using to add force

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/4/b/f4b638327462dabd52d1c80f8a5fe3e20ccf5c04.png)

How do I solve this issue?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 23, 2024, 6:35pm UTC](https://forums.unrealengine.com/t/add-force-independent-of-framerate/2146443/2 "2024-11-23T18:35:59Z")

</div>

> [@tolacipeetahi](#):
>
> Now, how do I implement it?

These days you Async Physics Tick.

* * *

If you implement physics math anywhere else that is frame dependent, you must account for (multiply applied forces by) frame delta.

I believe that running Async Tick does so in a seperate thread to boot.

* * *

In your example I’d have input open a Gate for Async Tick to do its job.

---

<div class="post-metadata">

**Author:** ![tolacipeetahi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tolacipeetahi](https://forums.unrealengine.com/u/tolacipeetahi)\
**Post date:** [November 29, 2024, 3:45pm UTC](https://forums.unrealengine.com/t/add-force-independent-of-framerate/2146443/3 "2024-11-29T15:45:19Z")

</div>

Hey sorry for delayed response, I had some time off and took a bit to learn about all of this. Your response gave me lots to research and a good method, thank you 😃 It does appear that it runs in a separate thread from everything I’ve read as well.

The gate node was also a good way to do it, and I’ve gotten everything working now, thank you!

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [December 29, 2024, 3:45pm UTC](https://forums.unrealengine.com/t/add-force-independent-of-framerate/2146443/4 "2024-12-29T15:45:30Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
