Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3730 in orxonox.OLD for orxonox/trunk/src


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

orxonox/trunk: animation player is not yet working, but it look more like the desired actions than ever…:)

Location:
orxonox/trunk/src
Files:
2 edited

Legend:

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

    r3729 r3730  
    263263      this->localTime -= this->currentFrame->time;
    264264
    265       this->lastPosition = this->currentFrame->position;
     265      this->currentFrame->object->setRelCoor(this->currentFrame->position);
     266      *this->lastPosition = *this->currentFrame->position;
     267
    266268      this->lastFrame = this->currentFrame;
    267269      this->currentFrame = this->frames->nextElement(this->currentFrame);
    268270    }
    269  
    270  
     271
    271272  /* now animate it */
    272273  switch( this->mode)
  • orxonox/trunk/src/story_entities/world.cc

    r3729 r3730  
    442442
    443443
     444
    444445            WorldEntity* a = new Environment();
    445             this->spawn(a, new Vector(200.0, -35.0, 5.0), new Quaternion());
     446            this->localPlayer->addChild(a);
     447            a->setRelCoor(new Vector(10.0, 2.0, 1.0));
     448            this->spawn(a);
     449
    446450
    447451            WorldEntity* b = new Environment();
    448452            this->localPlayer->addChild(b);
    449             b->setRelCoor(new Vector(10.0, 0.0, 0.0));
     453            b->setRelCoor(new Vector(10.0, 1.0, 1.0));
    450454            this->spawn(b);
     455
     456            WorldEntity* c = new Environment();
     457            this->localPlayer->addChild(c);
     458            c->setRelCoor(new Vector(10.0, 2.0, -1.0));
     459            this->spawn(c);
     460
    451461           
    452462            this->simpleAnimation = SimpleAnimation::getInstance();
Note: See TracChangeset for help on using the changeset viewer.