aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authornathansmithsmith <thenathansmithsmith@gmail.com>2023-07-21 00:12:00 -0600
committernathansmithsmith <thenathansmithsmith@gmail.com>2023-07-21 00:12:00 -0600
commitd4b40dcf7589bef2bbd0b6b940ee992da9db2343 (patch)
tree42756cfe9a23382bc406732fdfeccce64fddb6d4 /src/util.h
parent43e31b6e124da754ef928d22fbb9a1d7640aab4b (diff)
Working collision system
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 817d472..b7630c5 100644
--- a/src/util.h
+++ b/src/util.h
@@ -23,4 +23,13 @@ float signum(float n);
// Debugging stuff.
void printVector3(Vector3 v);
+typedef struct Triangle3D {
+ Vector3 v1;
+ Vector3 v2;
+ Vector3 v3;
+} Triangle3D;
+
+// Thank you chatgpt.
+bool checkTriangleCollision3D(const Vector3 triangleA[3], const Vector3 triangleB[3], Vector3 normalA, Vector3 normalB);
+
#endif