cut11b: bound arachnid stride envelope and stiffen quad hip tracking
This commit is contained in:
parent
2b511a4b58
commit
21a596e471
1 changed files with 5 additions and 5 deletions
|
|
@ -1708,7 +1708,7 @@ namespace RustToDust.Ymir
|
||||||
float restRadial = MathF.Sqrt(rdx * rdx + rdz * rdz) * scale;
|
float restRadial = MathF.Sqrt(rdx * rdx + rdz * rdz) * scale;
|
||||||
if (restRadial > 0.25f * scale)
|
if (restRadial > 0.25f * scale)
|
||||||
{
|
{
|
||||||
maxStep = MathF.Min(maxStep, restRadial * 1.15f);
|
maxStep = MathF.Min(maxStep, restRadial * 0.92f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (stepOffset.Length() > maxStep)
|
if (stepOffset.Length() > maxStep)
|
||||||
|
|
@ -2040,10 +2040,10 @@ namespace RustToDust.Ymir
|
||||||
|
|
||||||
float subDt = dt * 0.25f;
|
float subDt = dt * 0.25f;
|
||||||
float limbI = MathF.Max(1f, mass * scale * scale * 0.025f);
|
float limbI = MathF.Max(1f, mass * scale * scale * 0.025f);
|
||||||
float kpStance = limbI * (n == 4 ? 4600f : 5600f);
|
float kpStance = limbI * (n == 4 ? 5200f : 5600f);
|
||||||
float kpSwing = limbI * (n == 4 ? 3600f : 4400f);
|
float kpSwing = limbI * (n == 4 ? 4600f : 4400f);
|
||||||
float kdStance = limbI * (2f * 0.85f * MathF.Sqrt(n == 4 ? 4600f : 5600f));
|
float kdStance = limbI * (2f * 0.85f * MathF.Sqrt(n == 4 ? 5200f : 5600f));
|
||||||
float kdSwing = limbI * (2f * 0.85f * MathF.Sqrt(n == 4 ? 3600f : 4400f));
|
float kdSwing = limbI * (2f * 0.85f * MathF.Sqrt(n == 4 ? 4600f : 4400f));
|
||||||
float tauLimitBase = limbI * 700f;
|
float tauLimitBase = limbI * 700f;
|
||||||
float tauLimitAnkle = limbI * 650f;
|
float tauLimitAnkle = limbI * 650f;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue