]> git.localhorst.tv Git - gong.git/blob - src/physics/Object.hpp
half-{complete,assed} sphere collision detection
[gong.git] / src / physics / Object.hpp
1 #ifndef GONG_PHYSICS_OBJECT_HPP_
2 #define GONG_PHYSICS_OBJECT_HPP_
3
4 #include "State.hpp"
5 #include "../geometry/primitive.hpp"
6
7 #include <vector>
8
9
10 namespace gong {
11 namespace physics {
12
13 struct Contact;
14 class Sphere;
15
16 struct Object {
17
18         State state;
19         geometry::AABB bounds;
20
21         void TestCollision(Object &, std::vector<Contact> &);
22
23         virtual void ReverseCollisionTest(Object &, std::vector<Contact> &) = 0;
24         virtual void ActualCollisionTest(Sphere &, std::vector<Contact> &) = 0;
25
26 };
27
28 }
29 }
30
31 #endif