godotengine / godot

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

2D Physics interpolation not working with Y-Sort enabled #92982

Closed maidopi-usagi closed 2 weeks ago

maidopi-usagi commented 4 months ago

Tested versions

Tested in Godot v4.3.beta1

System information

Windows 10.0.22631 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 3090 (NVIDIA; 31.0.15.4592) - 13th Gen Intel(R) Core(TM) i7-13700F (24 Threads)

Issue description

Just as title describes, with parent Node2D's y-sort enabled, a child node will not be smoothed when its y-sort is enabled.

https://github.com/godotengine/godot/assets/33864304/05cc327a-0831-4c84-82b6-a6ba66d86549

Steps to reproduce

  1. Open and Run MRP
  2. The CharacterBody2D disables y-sort by default. use directional keys to move around and the movement is smooth.
  3. Press SPACE key and move the CharacterBody2D again, the movement will not be smoothed.

Minimal reproduction project (MRP)

2d_interp_mrp.zip

Shalankwa commented 2 months ago

Any updates on when this may be merged? I've encountered the same issue on my current project.

deventide commented 1 month ago

The seems to be present in 3.6 as well. Deactivating the sorting on a y-sort node made the interpolation work.

SphyxDev commented 1 month ago

If anyone else needs a solution until this issue gets resolved, lawnjelly's smoothing addon thankfully doesn't have the issue with y-sorting.