Alvaro Cassinelli / Mbed 2 deprecated skinGames_forktest

Dependencies:   mbed

Fork of scoreLight_Advanced by Alvaro Cassinelli

Revision:
4:f9d364f10335
Parent:
1:a4050fee11f7
Child:
12:0de9cd2bced5
diff -r b44ff6de81bd -r f9d364f10335 elasticLoop.h
--- a/elasticLoop.h	Mon Apr 02 05:33:44 2012 +0000
+++ b/elasticLoop.h	Wed Apr 04 10:05:25 2012 +0000
@@ -32,7 +32,7 @@
     ~elasticLoop();
     
     // instantiation of the virtual methods of the base class (we don't need to append "virtual", but for clarity I do):
-    void createBlob(int _id, ElasticLoopMode _elasticBlobMode, vector2D _initPos);
+    void createBlob(int _id, ElasticLoopMode _elasticBlobMode, vector2D _initPos, vector2D _initSpeed);
     virtual void setRegionMotion(int mmix, int mmiy, int mmax, int mmay); // attention: initial position posX and posY should be inside this bounding box...
     virtual void update();  // update dynamics of the mass loop   
     virtual void draw(void);  // draw the blob (renders on the laser trajectory object lsdTrajectory from the base class, using the openGL laser renderer - not yet done).
@@ -91,7 +91,12 @@
     float dampMotionMassesLoop;
     float massAnchor;
     float dampMotionAnchorMass;
-
+    
+    // initial size, position and center-mass speed of the elastic loop:
+    float startRadius;
+    //vector2D startCenter; // this belongs to the base class
+    // vector2D startSpeed; // this belongs to base class
+    
     float interSpringK, interSpringRelax;
     float centralSpringK, centralSpringRelax;
     float factorLightForce;