godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
86.5k stars 19.27k forks source link

when enable physics/common/physics_interpolation, the behavior of the game becomes very strange. #93620

Closed gnenux closed 12 hours ago

gnenux commented 1 week ago

Tested versions

System information

Godot v4.3.beta2.mono - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4070 Ti (NVIDIA; 31.0.15.5244) - Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz (12 Threads)

Issue description

not enable physics/common/physics_interpolation

https://github.com/godotengine/godot/assets/14236891/949e3ac8-1746-4d5f-b1c5-552cc85f71cd

enable physics/common/physics_interpolation

屏幕截图 2024-06-26 155414

https://github.com/godotengine/godot/assets/14236891/d3662cae-db9f-4808-97f3-affc148c6c03

Steps to reproduce

please refer to the attachment's project file.

Minimal reproduction project (MRP)

physicsinterpolation.zip

4X3L82 commented 1 week ago

This might be a duplicate of #93586?

cosparks commented 5 days ago

Can confirm that this issue is fixed by the changes I'm working on for #93586.

Here is an even more minimal mrp for anyone who is curious: physics_interp_rotation_bug.zip. I modified it to use gdscript instead of c#, and also updated it so the rotating sprite's transform is set in _physics_process instead of _process.

cosparks commented 4 days ago

@akien-mga this can be closed as it was fixed by the changes I proposed yesterday in #93586 which were merged in #93852