v1.12.6.2 (Spring Update 2026)

This commit is contained in:
Regalis11
2026-04-09 15:10:07 +03:00
parent c8657caefa
commit a4607dffad
197 changed files with 5586 additions and 3461 deletions
@@ -534,8 +534,10 @@ namespace Barotrauma
default:
throw new NotImplementedException();
}
return spritesheetRotation.HasValue ? Vector2.Transform(pos, Matrix.CreateRotationZ(-spritesheetRotation.Value)) : pos;
return spritesheetRotation.HasValue ? RotateVector(pos, spritesheetRotation.Value) : pos;
}
public static Vector2 RotateVector(Vector2 v, float rotation) => Vector2.Transform(v, Matrix.CreateRotationZ(-rotation));
public float GetMaxExtent()
{