fix angular braking (#18207)

This commit is contained in:
Ilya246
2023-07-27 11:38:03 +04:00
committed by GitHub
parent c6d2fe6d03
commit 4c47686fe8

View File

@@ -414,7 +414,7 @@ namespace Content.Server.Physics.Controllers
}
else
{
torque = MathF.Max(body.AngularVelocity / torqueMul, torque);
torque = MathF.Min(-body.AngularVelocity / torqueMul, torque);
}
if (!torque.Equals(0f))