summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-07-18 15:44:14 +0200
committerGitHub <noreply@github.com>2019-07-18 15:44:14 +0200
commit20a3bb9c484431439ffa60a158d7563c466cd530 (patch)
tree12a20dcd9ef451021d7fec08d558fb8ad756ef2a /doc
parent708092f0373019256845f486435f92a99437843f (diff)
parentbf6c301b9cb515789db03743dbcebc67a1865538 (diff)
Merge pull request #30226 from lawnjelly/interpolate
Add access to interpolation fraction for fixed timestep interpolation
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/Engine.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/classes/Engine.xml b/doc/classes/Engine.xml
index 60a807c304..187e13d7bd 100644
--- a/doc/classes/Engine.xml
+++ b/doc/classes/Engine.xml
@@ -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>