]> git.localhorst.tv Git - gong.git/blob - src/physics/Contact.hpp
half-{complete,assed} sphere collision detection
[gong.git] / src / physics / Contact.hpp
1 #ifndef GONG_PHYSICS_CONTACT_HPP_
2 #define GONG_PHYSICS_CONTACT_HPP_
3
4 #include "../graphics/glm.hpp"
5
6
7 namespace gong {
8 namespace physics {
9
10 class Object;
11
12 struct Contact {
13
14         glm::vec3 point;
15         glm::vec3 normal;
16         Object *a;
17         Object *b;
18
19         Contact(const glm::vec3 &p, const glm::vec3 &n, Object *a, Object *b)
20         : point(p), normal(n), a(a), b(b) { }
21
22 };
23
24 }
25 }
26
27 #endif