Alvaro Cassinelli
/
skinGames_forktest
just a test
Fork of scoreLight_Advanced by
Diff: rigidLoop.h
- Revision:
- 4:f9d364f10335
- Parent:
- 1:a4050fee11f7
- Child:
- 7:0df17f3078bc
diff -r b44ff6de81bd -r f9d364f10335 rigidLoop.h --- a/rigidLoop.h Mon Apr 02 05:33:44 2012 +0000 +++ b/rigidLoop.h Wed Apr 04 10:05:25 2012 +0000 @@ -8,7 +8,7 @@ using namespace std; -enum RigidLoopMode {SPOT_FOLLOWING, SPOT_BOUNCING}; +enum RigidLoopMode {SPOT_FOLLOWING, SPOT_BOUNCING, SPOT_TEST}; class rigidLoop : public soundSpot { @@ -19,7 +19,7 @@ ~rigidLoop(); // 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, RigidLoopMode _rigidBlobMode, vector2D _initPos); + void createBlob(int _id, RigidLoopMode _rigidBlobMode, 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). @@ -49,6 +49,8 @@ // numeric parameters: float saccadeRadius; + float rotationAngle; // note: in the future, rotation would be done by the openGL-like renderer + float massCenter; float dampMotionCenterMass;