Sprites tied to physics lag one frame behind (Issue-4152)

New game, same issue! This time I’m using joints, so the body has to be dynamic.

My new theory is that the game object is moved before all collisions have been resolved, so it appears stuck in the terrain for one frame.

I have been trying to move the body back when overlapping using the hack of firing a blind raycast and picking up its “ray_cast_missed” message mentioned in these threads:

The issue is clearly visible in this project: PhysicsTunneling.zip (52.6 KB)

Video of the issue:

Does anyone have any idea of how this issue could be fixed or mitigated?

3 Likes