Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3731 in orxonox.OLD for orxonox/trunk/src/story_entities


Ignore:
Timestamp:
Apr 6, 2005, 12:44:49 AM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: animation player now works for two keyframes.

File:
1 edited

Legend:

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

    r3730 r3731  
    443443
    444444
     445            /*
    445446            WorldEntity* a = new Environment();
    446447            this->localPlayer->addChild(a);
    447448            a->setRelCoor(new Vector(10.0, 2.0, 1.0));
    448449            this->spawn(a);
    449 
     450            */
    450451
    451452            WorldEntity* b = new Environment();
     
    454455            this->spawn(b);
    455456
     457            /*
    456458            WorldEntity* c = new Environment();
    457459            this->localPlayer->addChild(c);
    458460            c->setRelCoor(new Vector(10.0, 2.0, -1.0));
    459461            this->spawn(c);
    460 
     462            */
    461463           
    462464            this->simpleAnimation = SimpleAnimation::getInstance();
     
    482484            f2->mode = LINEAR;
    483485
     486            KeyFrame* f3 = new KeyFrame;
     487            f3->position = new Vector(10.0, 0.0, -1.0);
     488            f3->direction = new Quaternion();
     489            f3->time = 1.0;
     490            f3->mode = LINEAR;
     491
     492
    484493            this->simpleAnimation->animatorBegin();
    485494            this->simpleAnimation->selectObject(b);
    486495            this->simpleAnimation->addKeyFrame(f1);
    487496            this->simpleAnimation->addKeyFrame(f2);
     497            //this->simpleAnimation->addKeyFrame(f3);
     498            //this->simpleAnimation->addKeyFrame(f2);
    488499            this->simpleAnimation->animatorEnd();
    489500
Note: See TracChangeset for help on using the changeset viewer.