Merge branch 'master' of https://github.com/Regalis11/Barotrauma into develop

This commit is contained in:
EvilFactory
2023-03-13 13:32:14 -03:00
335 changed files with 11052 additions and 5179 deletions
@@ -37,8 +37,9 @@ namespace Barotrauma
public static float InterpolateRotation(float previous, float current)
{
//use a somewhat high epsilon - very small differences aren't visible
if (MathUtils.NearlyEqual(previous, current, epsilon: 0.02f)) { return current; }
float angleDiff = MathUtils.GetShortestAngle(previous, current);
return previous + angleDiff * (float)alpha;
}