Changeset 10498 in orxonox.OLD for trunk/src/util/track
- Timestamp:
- Jan 30, 2007, 11:10:09 AM (18 years ago)
- Location:
- trunk/src/util/track
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/track/track.cc
r10454 r10498 142 142 this->mode = newMode; 143 143 } 144 145 /** 146 * Sets the bool if the track runs (false) or not (true) 147 */ 148 void Track::pauseTrack(bool stop) 149 { 150 this->pause = stop; 151 } 152 144 153 145 154 /** … … 250 259 { 251 260 float newDt = dt * ratio; 261 if(this->pause) 262 newDt = 0; 252 263 this->localTime = oldTime += newDt; 253 264 } -
trunk/src/util/track/track.h
r10454 r10498 27 27 void setSpeed(float speed); 28 28 void setMode(int newMode); 29 void pauseTrack(bool stop); 29 30 30 31 //void finalize(); … … 55 56 PNode* trackNode; //!< The node that is slave to the Track. This node will be moved while update the Track, and must NOT move itself. 56 57 int mode; //!< Defines the behaviour of the Track. 58 bool pause; //!< Defines if the track runs (false) or not (true) 57 59 }; 58 60
Note: See TracChangeset
for help on using the changeset viewer.