Changeset 3852 in orxonox.OLD for orxonox/trunk/src/t_animation.h
- Timestamp:
- Apr 17, 2005, 1:39:10 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/t_animation.h
r3851 r3852 36 36 void addKeyFrame(float value, float duration, ANIM_FUNCTION animFunc = ANIM_LINEAR); 37 37 38 virtual void tick(float timePassed);38 virtual void tick(float dt); 39 39 40 40 // animation functions … … 154 154 155 155 template<class T> 156 void tAnimation<T>::tick(float timePassed)156 void tAnimation<T>::tick(float dt) 157 157 { 158 158 if (this->bRunning) 159 159 { 160 this->localTime += timePassed;160 this->localTime += dt; 161 161 if (localTime >= this->currentKeyFrame->duration) 162 162 {
Note: See TracChangeset
for help on using the changeset viewer.