summaryrefslogtreecommitdiff
path: root/src/simulation/Solid.h
diff options
context:
space:
mode:
authorStanislaw Skowronek <skylark@disorder.sko>2013-11-13 13:54:46 (GMT)
committer Stanislaw Skowronek <skylark@disorder.sko>2013-11-13 13:54:46 (GMT)
commit54769d13eb1b4216b7c6d18e08c3797bf3a48e8a (patch)
treeb9044f60fc982a75e00eda291be1aa3baaca1656 /src/simulation/Solid.h
parentf32929128e1d93517f24253ed58801acc32ce814 (diff)
downloadpowder-54769d13eb1b4216b7c6d18e08c3797bf3a48e8a.zip
powder-54769d13eb1b4216b7c6d18e08c3797bf3a48e8a.tar.gz
Initial check-in of movable solids. Save/Load/Undo do not work and may crash.
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