Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3732 in orxonox.OLD for orxonox/trunk/src/story_entities/world.cc


Ignore:
Timestamp:
Apr 6, 2005, 10:48:58 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: SimpleAnimation - now sinusoidal velocity distribution works also.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/world.cc

    r3731 r3732  
    472472
    473473            KeyFrame* f1 = new KeyFrame;
    474             f1->position = new Vector(10.0, 1.0, 1.0);
     474            f1->position = new Vector(10.0, 1.0, -1.0);
    475475            f1->direction = new Quaternion();
    476476            f1->time = 1.0;
    477             f1->mode = LINEAR;
     477            f1->mode = SIN;
    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, 1.0);
    482482            f2->direction = new Quaternion();
    483483            f2->time = 1.0;
    484             f2->mode = LINEAR;
     484            f2->mode = SIN;
    485485
    486486            KeyFrame* f3 = new KeyFrame;
    487             f3->position = new Vector(10.0, 0.0, -1.0);
     487            f3->position = new Vector(5.0, 1.0, -1.0);
    488488            f3->direction = new Quaternion();
    489489            f3->time = 1.0;
    490             f3->mode = LINEAR;
     490            f3->mode = SIN;
    491491
    492492
     
    495495            this->simpleAnimation->addKeyFrame(f1);
    496496            this->simpleAnimation->addKeyFrame(f2);
    497             //this->simpleAnimation->addKeyFrame(f3);
     497            this->simpleAnimation->addKeyFrame(f3);
    498498            //this->simpleAnimation->addKeyFrame(f2);
    499499            this->simpleAnimation->animatorEnd();
Note: See TracChangeset for help on using the changeset viewer.