summaryrefslogtreecommitdiff
path: root/src/entity.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/entity.c')
-rw-r--r--src/entity.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/entity.c b/src/entity.c
new file mode 100644
index 0000000..f2c4190
--- /dev/null
+++ b/src/entity.c
@@ -0,0 +1,9 @@
+#include "entity.h"
+
+Hitbox createHitbox(Vector3* vertices)
+{
+ return (Hitbox){
+ .vertices = vertices,
+ .num_vertices = sizeof(vertices)/sizeof(Vector3)
+ };
+}