Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 27, 2005, 12:12:28 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: patch to use relative coordinates again, some smaller changes in the preLoading/loading mechanisms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/animation/animation3d.cc

    r3988 r3993  
    178178    case ANIM_LINEAR:
    179179      this->animFuncMov = &Animation3D::mLinear;
    180       //this->object->setRelCoor(this->currentKeyFrame->position);
     180      this->object->setRelCoor(this->currentKeyFrame->position);
    181181      this->currentKeyFrame->lastPosition = Vector();
    182182      break;
    183183    case ANIM_SINE:
    184184      this->animFuncMov = &Animation3D::mSine;
    185       //this->object->setRelCoor(this->currentKeyFrame->position);
     185      this->object->setRelCoor(this->currentKeyFrame->position);
    186186      this->currentKeyFrame->lastPosition = Vector();
    187187      break;
    188188    case ANIM_COSINE:
    189189      this->animFuncMov = &Animation3D::mCosine;
    190       //this->object->setRelCoor(this->currentKeyFrame->position);
     190      this->object->setRelCoor(this->currentKeyFrame->position);
    191191      this->currentKeyFrame->lastPosition = Vector();
    192192      break;
    193193    case ANIM_EXP:
     194      this->object->setRelCoor(this->currentKeyFrame->position);
    194195      this->animFuncMov = &Animation3D::mExp;
    195196      break;
    196197    case ANIM_NEG_EXP:
    197198      this->animFuncMov = &Animation3D::mNegExp;
     199      this->object->setRelCoor(this->currentKeyFrame->position);
    198200      this->expFactorMov = -1.0 / this->currentKeyFrame->duration * logf(DELTA_X_3D);
    199201      this->currentKeyFrame->lastPosition = Vector();
    200202      break;
    201203    case ANIM_QUADRATIC:
     204      this->object->setRelCoor(this->currentKeyFrame->position);
    202205      this->animFuncMov = &Animation3D::mQuadratic;
    203206      break;
    204207    case ANIM_RANDOM:
     208      this->object->setRelCoor(this->currentKeyFrame->position);
    205209      this->animFuncMov = &Animation3D::mRandom;
    206210      break;
     
    353357    case ANIM_CONSTANT:
    354358      this->animFuncRot = &Animation3D::rConstant;
    355       printf("a;sdlfkja;lskdjf;alskjdf;lasjdf;lasjdf;lasjdf;lajsdf\n");
    356359      break;
    357360    case ANIM_LINEAR:
Note: See TracChangeset for help on using the changeset viewer.