Changeset 4163 in orxonox.OLD for orxonox/branches/md2_loader/src/lib/graphics/importer/md2Model.cc
- Timestamp:
- May 11, 2005, 10:30:39 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/md2_loader/src/lib/graphics/importer/md2Model.cc
r4162 r4163 97 97 { 98 98 /* stretch the time with animation speed (and make seconds out of it) */ 99 float t = this->dtS / (1000.0f / kAnimationSpeed); 100 101 if ( unlikely(this->dtS >= (1000.0f / kAnimationSpeed)) ) 99 //float t = this->dtS / kAnimationSpeed; 100 101 if ( unlikely(this->localTime*1000.0 >= 1000.0/kAnimationSpeed) ) 102 { 102 103 pModel->currentFrame = nextFrame; 103 return t; 104 printf("changing frame\n"); 105 this->localTime = 0.0f; 106 } 107 printf("t = %f\n", this->localTime); 108 return (this->localTime/kAnimationSpeed); 104 109 } 105 110 … … 109 114 /* TEMP TEMP TEMP: save the current step length */ 110 115 this->dtS = dtS; 116 this->localTime += dtS; 111 117 } 112 118
Note: See TracChangeset
for help on using the changeset viewer.