summaryrefslogtreecommitdiff
path: root/sim.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'sim.hpp')
-rw-r--r--sim.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/sim.hpp b/sim.hpp
index a8a739a..a6591d3 100644
--- a/sim.hpp
+++ b/sim.hpp
@@ -127,7 +127,13 @@ typedef struct {
typedef struct {
b2Body *body;
- v2 center; // NOTE: when creating a moving platform, you don't need to set this (it will be automatically initialized to move_pos1)
+
+ // save the starting position and rotation of the platform so we
+ // can restore it to reset the setup
+ v2 start_center;
+ float start_angle;
+
+ v2 center;
float size;
float angle;