Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Apr 25, 2005, 11:45:57 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: implemented neg_exp function again. better than ever :)

File:
1 edited

Legend:

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

    r3870 r3964  
    4444#include "list.h"
    4545
     46#include "animation3d.h"
    4647
    4748
     
    465466
    466467           
    467            
    468 
    469             WorldEntity* b = new Environment();
    470             this->localPlayer->addChild(b);
    471             b->setRelCoor(Vector(10.0, 1.0, 1.0));
    472             this->spawn(b);
    473 
    474            
     468   
    475469            WorldEntity* c = new Environment();
    476470            this->localPlayer->addChild(c);
     
    478472            this->spawn(c);
    479473           
     474           
     475            Animation3D* animation = new Animation3D(c);
     476            animation->setInfinity(ANIM_INF_REPLAY);
     477            animation->addKeyFrame(Vector(0, 0, 0), Quaternion(), 1.0, ANIM_NEG_EXP);
     478            animation->addKeyFrame(Vector(5, 5, -5), Quaternion(), 1.0, ANIM_NEG_EXP);
     479            animation->addKeyFrame(Vector(0, 0, 0), Quaternion(), 1.0, ANIM_NEG_EXP);
     480
     481
    480482            /*     
    481483                  KeyFrame* f1 = new KeyFrame;
Note: See TracChangeset for help on using the changeset viewer.