mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Add access to interpolation fraction for fixed timestep interpolation
Addresses #30068 This is a prerequisite for allowing proper support for fixed timestep interpolation, exposing the interpolation fraction to the engine, modules and gdscript. The interpolation fraction is the fraction through the current physics tick at the time of the current frame.
This commit is contained in:
@@ -72,6 +72,13 @@
|
||||
Returns the main loop object (see [MainLoop] and [SceneTree]).
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_physics_interpolation_fraction" qualifiers="const">
|
||||
<return type="float">
|
||||
</return>
|
||||
<description>
|
||||
Returns the fraction through the current physics tick we are at the time of rendering the frame. This can be used to implement fixed timestep interpolation.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_singleton" qualifiers="const">
|
||||
<return type="Object">
|
||||
</return>
|
||||
|
||||
Reference in New Issue
Block a user