Changeset 3855 in orxonox.OLD for orxonox/trunk/src/t_animation.h
- Timestamp:
- Apr 17, 2005, 2:46:27 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/t_animation.h
r3854 r3855 54 54 // ANIM_FUNCTION animFunc; 55 55 float (tAnimation<T>::*animFunc)(float) const; //!< A Function for the AnimationType 56 56 57 KeyFrameF* currentKeyFrame; //!< The current KeyFrame 57 58 KeyFrameF* nextKeyFrame; //!< The KeyFrame we iterate to … … 247 248 248 249 // animation functions 249 250 /**251 \brief some random animation (fluctuating)252 \param timePassed The time passed since this Keyframe began253 */254 template<class T>255 float tAnimation<T>::random(float timePassed) const256 {257 return this->currentKeyFrame->value * (float)rand()/(float)RAND_MAX;258 }259 260 250 /** 261 251 \brief stays at the value of the currentKeyFrame … … 345 335 } 346 336 337 /** 338 \brief some random animation (fluctuating) 339 \param timePassed The time passed since this Keyframe began 340 */ 341 template<class T> 342 float tAnimation<T>::random(float timePassed) const 343 { 344 return this->currentKeyFrame->value * (float)rand()/(float)RAND_MAX; 345 } 347 346 348 347 #endif /* _T_ANIMATION_H */
Note: See TracChangeset
for help on using the changeset viewer.