Can't get forward velocity multiplied with delta seconds consistent

Hello all,

I have an actor that moves forward, but I don’t understand how to get consistent results with different frame rates. I am trying to multiply for the forward speed with delta seconds, but the results remain inconsistent.


I created a variable from the Event Tick called DeltaTime that gets updates every tick (fist picture). In the function that handles forward movement I tried to implement DeltaTime on several locations, but nothing seems to do the trick.

All variables give the same results with different frame rates, so the values to calculate the forward speed are consistent, so I figured that I probably need to multiply with DeltaTime right before the force is applied. No success however…

I really can’t get my head around this. Can someone point me in the right direction and explain to me why my results are inconsistent?

I appreciate any and all help.

Thanks in advance!

Kind regards,

Niels

Any input on the matter would be greatly appreciated.

I tried to rebuild the blueprint and only add force to drive the object forward, but still the result are inconsistent with different frame rates…

I don’t think you can use delta when force is concerned. It’s really only for correcting other floats.

Technically, physics should work the same regardless of frame rate. You have to enable substepping

If that still doesn’t work, you pretty much on your own. I did see this

1 Like

Thanks for the reply and the suggestion. I will look into sub-steps and see what happens :slight_smile:

1 Like

This topic has been moved from International to Programming & Scripting: Blueprint.

When posting, please review the categories to ensure your topic is posted in the most relevant space. Hopefully, this category change helps you or other devs with similar questions.

Happy developing! :slight_smile: