aboutsummaryrefslogtreecommitdiff
path: root/src/types.h
diff options
context:
space:
mode:
authortaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-07-08 23:49:48 +0000
committertaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-07-08 23:49:48 +0000
commit62838fb8a4d27654998b6b304d1c485e497bfa4c (patch)
tree9548bd28c8ade169087dfd08ab70fb4d127b465e /src/types.h
parentdaae10d9ac6ad4f768b52bc528f5fe366a86e572 (diff)
Restructuring of collision detection
git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@134 84d2e878-0bd5-11dd-ad15-13eda11d74c5
Diffstat (limited to 'src/types.h')
-rw-r--r--src/types.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/types.h b/src/types.h
index d489be7..dcbc097 100644
--- a/src/types.h
+++ b/src/types.h
@@ -255,5 +255,19 @@ typedef struct {
} Game;
+typedef struct {
+
+ double nx;
+ double ny;
+ double nz; /* Normal of face being collided with */
+
+ double cx;
+ double cy;
+ double cz; /* Coordinates of object at the moment when it collides */
+
+ double ttc;
+
+} CollisionSpec;
+
#endif /* TYPES_H */