cut11b: bound arachnid stride envelope and stiffen quad hip tracking

This commit is contained in:
Meta Vens 2026-12-06 03:19:06 +01:00
commit 21a596e471

View file

@ -1708,7 +1708,7 @@ namespace RustToDust.Ymir
float restRadial = MathF.Sqrt(rdx * rdx + rdz * rdz) * scale;
if (restRadial > 0.25f * scale)
{
maxStep = MathF.Min(maxStep, restRadial * 1.15f);
maxStep = MathF.Min(maxStep, restRadial * 0.92f);
}
}
if (stepOffset.Length() > maxStep)
@ -2040,10 +2040,10 @@ namespace RustToDust.Ymir
float subDt = dt * 0.25f;
float limbI = MathF.Max(1f, mass * scale * scale * 0.025f);
float kpStance = limbI * (n == 4 ? 4600f : 5600f);
float kpSwing = limbI * (n == 4 ? 3600f : 4400f);
float kdStance = limbI * (2f * 0.85f * MathF.Sqrt(n == 4 ? 4600f : 5600f));
float kdSwing = limbI * (2f * 0.85f * MathF.Sqrt(n == 4 ? 3600f : 4400f));
float kpStance = limbI * (n == 4 ? 5200f : 5600f);
float kpSwing = limbI * (n == 4 ? 4600f : 4400f);
float kdStance = limbI * (2f * 0.85f * MathF.Sqrt(n == 4 ? 5200f : 5600f));
float kdSwing = limbI * (2f * 0.85f * MathF.Sqrt(n == 4 ? 4600f : 4400f));
float tauLimitBase = limbI * 700f;
float tauLimitAnkle = limbI * 650f;