Changeset 3993 in orxonox.OLD for orxonox/trunk/src/util/animation
- Timestamp:
- Apr 27, 2005, 12:12:28 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/animation/animation3d.cc
r3988 r3993 178 178 case ANIM_LINEAR: 179 179 this->animFuncMov = &Animation3D::mLinear; 180 //this->object->setRelCoor(this->currentKeyFrame->position);180 this->object->setRelCoor(this->currentKeyFrame->position); 181 181 this->currentKeyFrame->lastPosition = Vector(); 182 182 break; 183 183 case ANIM_SINE: 184 184 this->animFuncMov = &Animation3D::mSine; 185 //this->object->setRelCoor(this->currentKeyFrame->position);185 this->object->setRelCoor(this->currentKeyFrame->position); 186 186 this->currentKeyFrame->lastPosition = Vector(); 187 187 break; 188 188 case ANIM_COSINE: 189 189 this->animFuncMov = &Animation3D::mCosine; 190 //this->object->setRelCoor(this->currentKeyFrame->position);190 this->object->setRelCoor(this->currentKeyFrame->position); 191 191 this->currentKeyFrame->lastPosition = Vector(); 192 192 break; 193 193 case ANIM_EXP: 194 this->object->setRelCoor(this->currentKeyFrame->position); 194 195 this->animFuncMov = &Animation3D::mExp; 195 196 break; 196 197 case ANIM_NEG_EXP: 197 198 this->animFuncMov = &Animation3D::mNegExp; 199 this->object->setRelCoor(this->currentKeyFrame->position); 198 200 this->expFactorMov = -1.0 / this->currentKeyFrame->duration * logf(DELTA_X_3D); 199 201 this->currentKeyFrame->lastPosition = Vector(); 200 202 break; 201 203 case ANIM_QUADRATIC: 204 this->object->setRelCoor(this->currentKeyFrame->position); 202 205 this->animFuncMov = &Animation3D::mQuadratic; 203 206 break; 204 207 case ANIM_RANDOM: 208 this->object->setRelCoor(this->currentKeyFrame->position); 205 209 this->animFuncMov = &Animation3D::mRandom; 206 210 break; … … 353 357 case ANIM_CONSTANT: 354 358 this->animFuncRot = &Animation3D::rConstant; 355 printf("a;sdlfkja;lskdjf;alskjdf;lasjdf;lasjdf;lasjdf;lajsdf\n");356 359 break; 357 360 case ANIM_LINEAR:
Note: See TracChangeset
for help on using the changeset viewer.