Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3745 in orxonox.OLD for orxonox/trunk


Ignore:
Timestamp:
Apr 7, 2005, 3:12:06 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: SimpleAnimation now realy works with more than one object - look at the funny shit in level3:)

File:
1 edited

Legend:

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

    r3744 r3745  
    455455            this->spawn(b);
    456456
    457             /*
     457           
    458458            WorldEntity* c = new Environment();
    459459            this->localPlayer->addChild(c);
    460460            c->setRelCoor(new Vector(10.0, 2.0, -1.0));
    461461            this->spawn(c);
    462             */
     462           
    463463           
    464464            this->simpleAnimation = SimpleAnimation::getInstance();
     
    485485
    486486            KeyFrame* f3 = new KeyFrame;
    487             f3->position = new Vector(-1.1, 0.0, 2.6);
     487            f3->position = new Vector(10.0, 2.0, -1.0);
    488488            f3->direction = new Quaternion();
    489489            f3->time = 0.2;
    490490            f3->mode = NEG_EXP;
     491
     492            KeyFrame* f4 = new KeyFrame;
     493            f4->position = new Vector(10.0, 5.0, -1.0);
     494            f4->direction = new Quaternion();
     495            f4->time = 1.0;
     496            f4->mode = NEG_EXP;
    491497
    492498
     
    495501            this->simpleAnimation->addKeyFrame(f1);
    496502            this->simpleAnimation->addKeyFrame(f2);
     503            this->simpleAnimation->start();
     504            this->simpleAnimation->selectObject(c);
     505            this->simpleAnimation->addKeyFrame(f3);
     506            this->simpleAnimation->addKeyFrame(f4);
    497507            this->simpleAnimation->start();
    498508            //this->simpleAnimation->addKeyFrame(f3);
Note: See TracChangeset for help on using the changeset viewer.