diff --git a/Shared/Debug.cs b/Shared/Debug.cs index 00b044a..0310784 100644 --- a/Shared/Debug.cs +++ b/Shared/Debug.cs @@ -66,6 +66,13 @@ namespace SemiColinGames { rects.Add(new DebugRect(rect, color)); } + public static void AddRect(Aabb box, Color color) { + Rectangle rect = new Rectangle( + (int) (box.Position.X - box.HalfSize.X), (int) (box.Position.Y - box.HalfSize.Y), + (int) (box.HalfSize.X * 2), (int) (box.HalfSize.Y * 2)); + AddRect(rect, color); + } + public static void AddLine(Point start, Point end, Color color) { lines.Add(new DebugLine(start, end, color)); }