cut11b: avoid discarding earlyBreak forward step on slope height epsilon

This commit is contained in:
Meta Vens 2026-12-06 02:42:21 +01:00
commit e296cc3992

View file

@ -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);