cut11b: avoid discarding earlyBreak forward step on slope height epsilon
This commit is contained in:
parent
785e24e290
commit
e296cc3992
1 changed files with 1 additions and 1 deletions
|
|
@ -1544,7 +1544,7 @@ namespace RustToDust.Ymir
|
||||||
{
|
{
|
||||||
landedNorm = clampedN;
|
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);
|
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);
|
Vector3 fallbackSole = new(ws.FootSole[i].X, curGround.SurfaceY, ws.FootSole[i].Z);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue