1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Fix get_global_transform_interpolated() with multiple ticks per frame

The previous and current transforms in the interpolation data were not being correctly updated in cases where two or more physics ticks occurred on a frame. This PR introduces a simple mechanism to ensure updates on interpolated spatials.
This commit is contained in:
lawnjelly
2022-02-21 07:34:42 +00:00
parent 74b698b817
commit 688dc534e5
6 changed files with 128 additions and 29 deletions

View File

@@ -2240,6 +2240,7 @@ bool Main::iteration() {
if (OS::get_singleton()->get_main_loop()->iteration(frame_slice * time_scale)) {
exit = true;
Engine::get_singleton()->_in_physics = false;
break;
}