From 32c8b93d409fbe6361d48c4ba88f5f37396071e1 Mon Sep 17 00:00:00 2001
From: Sara <sara@saragerretsen.nl>
Date: Fri, 6 Oct 2023 23:45:31 +0200
Subject: [PATCH] added collision struct to describe a collision between two
 entities

---
 src/collision.h | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 src/collision.h

diff --git a/src/collision.h b/src/collision.h
new file mode 100644
index 0000000..7e1a953
--- /dev/null
+++ b/src/collision.h
@@ -0,0 +1,18 @@
+#ifndef _fencer_collision_h
+#define _fencer_collision_h
+
+#include "shape.h"
+#include <stddef.h>
+
+struct Collision {
+    Shape* other;
+
+    Vector point;
+    Vector normal;
+    Vector velocity;
+
+    size_t edge_left;
+    size_t edge_right;
+};
+
+#endif // !_fencer_collision_h