summaryrefslogtreecommitdiff
path: root/src/simulation/Solid.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/simulation/Solid.h')
-rw-r--r--src/simulation/Solid.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/simulation/Solid.h b/src/simulation/Solid.h
new file mode 100644
index 0000000..f4b932c
--- /dev/null
+++ b/src/simulation/Solid.h
@@ -0,0 +1,22 @@
+#ifndef SOLID_H_
+#define SOLID_H_
+
+#include <vector>
+#include "StructProperty.h"
+
+#define NSOLID 16
+
+struct Solid
+{
+ int first, last;
+ float vx, vy, vrot;
+ float cx, cy; // centroid position
+ float ax, ay, arot, arad; // accumulators
+ int an;
+ unsigned char bf; // blocking flags
+ float bpx[4], bpy[4]; // blocking position extents
+ float bdx[4], bdy[4]; // blocking position orientation
+ int bp[4]; // blocking counterparticle ID
+};
+
+#endif