Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3734 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Apr 6, 2005, 11:33:50 AM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: SimpleAnimation: the NEG_EXP function now gets scaled in a very smooth manner.

Location:
orxonox/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/simple_animation.cc

    r3733 r3734  
    264264      this->localTime -= this->currentFrame->time;
    265265
    266       this->currentFrame->object->setRelCoor(*this->currentFrame->position);
     266      //this->currentFrame->object->setRelCoor(*this->currentFrame->position);
    267267      *this->lastPosition = *this->currentFrame->position;
    268268
     
    273273        {
    274274          *this->tmpVect = *this->currentFrame->position - *this->lastFrame->position;
    275           deltaT = 1/this->currentFrame->time * logf(1.0 + 100.0/this->tmpVect->len());
     275          deltaT = 1/this->currentFrame->time * logf(1.0 + 600.0/this->tmpVect->len());
    276276        }
    277277    }
  • orxonox/trunk/src/story_entities/world.cc

    r3733 r3734  
    472472
    473473            KeyFrame* f1 = new KeyFrame;
    474             f1->position = new Vector(10.0, 1.0, -1.0);
     474            f1->position = new Vector(20.0, 1.0, -1.0);
    475475            f1->direction = new Quaternion();
    476             f1->time = 0.5;
     476            f1->time = 0.3;
    477477            f1->mode = NEG_EXP;
    478478
    479479
    480480            KeyFrame* f2 = new KeyFrame;
    481             f2->position = new Vector(10.0, 1.0, 1.0);
     481            f2->position = new Vector(10.0, 1.0, 5.0);
    482482            f2->direction = new Quaternion();
    483483            f2->time = 0.5;
     
    485485
    486486            KeyFrame* f3 = new KeyFrame;
    487             f3->position = new Vector(5.0, 1.0, -1.0);
     487            f3->position = new Vector(5.0, 2.0, -1.0);
    488488            f3->direction = new Quaternion();
    489489            f3->time = 0.5;
Note: See TracChangeset for help on using the changeset viewer.