Merge branch 'CBT' into dev_itemrefactor

This commit is contained in:
NotAlwaysTrue
2026-04-30 22:15:38 +08:00
427 changed files with 24386 additions and 11539 deletions
@@ -591,8 +591,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()
{