FixedUpdate "alpha" value in Godot

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Lajbert


I got tired of MonoGame issues and made the heartbreaking decision to abandon my own game engine built on top of it and restart my projects in Godot. In my engine, I had FixedUpdate implemented with “alpha” value which used for frame interpolation etc.
I see that there is already PhysicsProcess in Godot which is great, but I can’t seen to get the “alpha” value. Is it not part of Godot engine, or did I miss something?

Thanks you

:bust_in_silhouette: Reply From: magicalogic

We use the delta value to do ‘frame interpolation’ if by that you mean to ensure movement happens at a constant rate regardless of the frame rate of the game. This delta value is actually the time that has elapsed since the last frame was drawn.

Actually what I was looking for the get_physics_interpolation_fraction, now everything is fine :slight_smile:

Lajbert | 2023-01-08 19:42