]> git.localhorst.tv Git - gong.git/blobdiff - src/physics/Contact.hpp
half-{complete,assed} sphere collision detection
[gong.git] / src / physics / Contact.hpp
diff --git a/src/physics/Contact.hpp b/src/physics/Contact.hpp
new file mode 100644 (file)
index 0000000..b7109b1
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef GONG_PHYSICS_CONTACT_HPP_
+#define GONG_PHYSICS_CONTACT_HPP_
+
+#include "../graphics/glm.hpp"
+
+
+namespace gong {
+namespace physics {
+
+class Object;
+
+struct Contact {
+
+       glm::vec3 point;
+       glm::vec3 normal;
+       Object *a;
+       Object *b;
+
+       Contact(const glm::vec3 &p, const glm::vec3 &n, Object *a, Object *b)
+       : point(p), normal(n), a(a), b(b) { }
+
+};
+
+}
+}
+
+#endif