(d85d68721) Fixed character's feet getting stuck to platforms when climbing ladders while holding A/D

This commit is contained in:
Joonas Rikkonen
2019-05-03 13:44:04 +03:00
parent fb21005258
commit 35f4657ea1
11 changed files with 91 additions and 339 deletions
@@ -733,10 +733,6 @@ namespace Barotrauma
limb.body.ApplyForce(diff * (float)(Math.Sin(WalkPos) * Math.Sqrt(limb.Mass)) * 30.0f * animStrength, maxVelocity: 10.0f);
}
while (referenceLimb.Rotation - angle < -MathHelper.TwoPi)
{
angle -= MathHelper.TwoPi;
}
limb?.body.SmoothRotate(angle, torque, wrapAngle: false);
}