cut11b: smooth liftoff transition and fix world hip/idle pred in tests

This commit is contained in:
Meta Vens 2026-12-06 02:17:08 +01:00
commit 6c12a79090
3 changed files with 29 additions and 14 deletions

View file

@ -908,7 +908,9 @@ namespace RustToDust.Tests
var view = host.Session.World.View;
int lane = localBody.Lane;
for (int t = 0; t < 6; t++)
// Prime idle local prediction once and drain unacked inputs so client sits grounded idle with _unackedInputs.Count == 0
client.SubmitLocalInput(new PlayerInput(0f, 0f, 0f, 40f, false, false, false), true);
for (int t = 0; t < 10; t++)
{
nowMs += 16;
host.StepOnce(nowMs);
@ -916,6 +918,7 @@ namespace RustToDust.Tests
client.BeginRenderFrame(1.0 / 60.0, 1f);
Thread.Sleep(1);
}
Assert.Equal(0, client.UnackedInputCount);
Assert.True(client.TrySampleInterpolatedWalkerPose(true, slot, 1f, out var preBlastSnap),
"Expected local walker prediction snapshot while grounded idle");