]> git.localhorst.tv Git - gong.git/blobdiff - src/physics/Object.hpp
half-{complete,assed} sphere collision detection
[gong.git] / src / physics / Object.hpp
index 576317c3014ae362fa9c5fb3c331cef5a38b3b31..f4f7f4ab2c6cf19f8be2b95aa438f31c60ce81f6 100644 (file)
@@ -4,15 +4,25 @@
 #include "State.hpp"
 #include "../geometry/primitive.hpp"
 
+#include <vector>
+
 
 namespace gong {
 namespace physics {
 
+struct Contact;
+class Sphere;
+
 struct Object {
 
        State state;
        geometry::AABB bounds;
 
+       void TestCollision(Object &, std::vector<Contact> &);
+
+       virtual void ReverseCollisionTest(Object &, std::vector<Contact> &) = 0;
+       virtual void ActualCollisionTest(Sphere &, std::vector<Contact> &) = 0;
+
 };
 
 }