Alvaro Cassinelli
/
skinGames_forktest
just a test
Fork of scoreLight_Advanced by
Diff: rigidLoop.h
- Revision:
- 32:52273c3291fe
- Parent:
- 31:5f039cbddee8
- Child:
- 33:43e8bc451ef0
--- a/rigidLoop.h Sun Sep 23 10:11:43 2012 +0000 +++ b/rigidLoop.h Mon Oct 29 14:28:47 2012 +0000 @@ -8,7 +8,8 @@ using namespace std; -enum RigidLoopMode {SPOT_FOLLOWING, SPOT_GHOST, SPOT_PACMAN, SPOT_BOUNCING, SPOT_AIR_HOCKEY, SPOT_LORENTZ_FORCE, +enum RigidLoopMode {SPOT_FOLLOWING, SPOT_GHOST, SPOT_PACMAN, SPOT_AIR_HOCKEY, SPOT_LORENTZ_FORCE, + SPOT_BOUNCING, SPOT_BOUNCING_FACTOR, SPOT_TEST, SPOT_TRACK, SPOT_TRACK_DOT, EXPLOSION}; @@ -28,6 +29,7 @@ virtual void computeBoundingBox(); virtual void sendDataSpecific(void); virtual void speedFactor(float speedfactor); + virtual void sizeFactor(float sizeFactor); virtual void explosion(); // not very nice programming style, it should be a MODE instead or something like that. virtual vector2Df getCenter(); @@ -70,7 +72,8 @@ float speedContourFollowing; // this is given as a percentage of the radius of the circle - float factorBouncingForce; + float factorBouncingForce; // spring force when penetrating on dark zone (used by SPOT_BOUNCING) + float factorAbsorptionShock; // factor speed damping when bouncing on dark zone (used in SPOT_BOUNCING_FACTOR) }; #endif \ No newline at end of file