Changeset 4998 in orxonox.OLD for orxonox/trunk/src/util
- Timestamp:
- Aug 13, 2005, 7:19:51 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/animation/animation3d.cc
r4836 r4998 401 401 void Animation3D::rLinear(float timePassed) const 402 402 { 403 this->object->setRelDir( quatSlerp( this->nextKeyFrame->direction,404 405 403 this->object->setRelDir(Quaternion::quatSlerp( this->nextKeyFrame->direction, 404 this->currentKeyFrame->direction, 405 timePassed/this->currentKeyFrame->duration) ); 406 406 } 407 407 … … 420 420 scale = 1.0 - sin( M_PI * timePassed / this->currentKeyFrame->duration); 421 421 422 this->object->setRelDir( quatSlerp( this->nextKeyFrame->direction,423 424 422 this->object->setRelDir(Quaternion::quatSlerp( this->nextKeyFrame->direction, 423 this->currentKeyFrame->direction, 424 scale) ); 425 425 } 426 426 … … 435 435 { 436 436 float scale = cos(M_PI * timePassed / this->currentKeyFrame->duration); 437 this->object->setRelDir( quatSlerp( this->nextKeyFrame->direction,438 439 437 this->object->setRelDir(Quaternion::quatSlerp( this->nextKeyFrame->direction, 438 this->currentKeyFrame->direction, 439 scale) ); 440 440 } 441 441 … … 458 458 { 459 459 float scale = (1.0 - expf(- timePassed * expFactorRot)); 460 this->object->setRelDir( quatSlerp( this->nextKeyFrame->direction,461 462 460 this->object->setRelDir(Quaternion::quatSlerp( this->nextKeyFrame->direction, 461 this->currentKeyFrame->direction, 462 scale) ); 463 463 } 464 464
Note: See TracChangeset
for help on using the changeset viewer.