From e296cc39927a5c8be122eca3f8fa6cbf7d20b79a Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 6 Dec 2026 02:42:21 +0100 Subject: [PATCH] cut11b: avoid discarding earlyBreak forward step on slope height epsilon --- src/RustToDust.Ymir/WalkerLocomotion.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RustToDust.Ymir/WalkerLocomotion.cs b/src/RustToDust.Ymir/WalkerLocomotion.cs index f6cbd62..3568b83 100644 --- a/src/RustToDust.Ymir/WalkerLocomotion.cs +++ b/src/RustToDust.Ymir/WalkerLocomotion.cs @@ -1544,7 +1544,7 @@ namespace RustToDust.Ymir { landedNorm = clampedN; } - if (earlyBreak && (landedSole - ws.FootSole[i]).Length() > maxPlantStep) + if (earlyBreak && (landedSole - ws.FootSole[i]).Length() > maxPlantStep * 1.25f) { var curGround = SampleGroundAt(terrain, world, ws.FootSole[i].X, ws.FootSole[i].Z, comPos.Y + 0.8f); Vector3 fallbackSole = new(ws.FootSole[i].X, curGround.SurfaceY, ws.FootSole[i].Z);