Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Apr 7, 2005, 7:37:25 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: made some sattelite object just for fun and to show on the convention tomarrow

File:
1 edited

Legend:

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

    r3745 r3750  
    3030#include "environment.h"
    3131#include "skysphere.h"
     32#include "satellite.h"
    3233#include "terrain.h"
    3334#include "light.h"
     
    442443
    443444
    444 
    445             /*
    446             WorldEntity* a = new Environment();
    447             this->localPlayer->addChild(a);
    448             a->setRelCoor(new Vector(10.0, 2.0, 1.0));
    449             this->spawn(a);
    450             */
     445            WorldEntity* baseNode = new Satellite(Vector(1,0,1), 1.2);
     446            this->localPlayer->addChild(baseNode);
     447            baseNode->setRelCoor(new Vector(10.0, 2.0, 1.0));
     448            this->spawn(baseNode);
     449
     450            WorldEntity* secondNode = new Satellite(Vector(0,0,1), 1.0);
     451            baseNode->addChild(secondNode);
     452            secondNode->setRelCoor(new Vector(0.0, 3.0, 0.0));
     453            this->spawn(secondNode);
     454
     455
     456            WorldEntity* thirdNode = new Satellite(Vector(0,0,1), 2.0);
     457            secondNode->addChild(thirdNode);
     458            thirdNode->setRelCoor(new Vector(2.0, 0.0, 0.0));
     459            this->spawn(thirdNode);
     460
     461
    451462
    452463            WorldEntity* b = new Environment();
     
    462473           
    463474           
    464             this->simpleAnimation = SimpleAnimation::getInstance();
    465 
    466             /*
    467               frame->position = point;
    468               frame->orientation = orientation;
    469               frame->time = time;
    470               frame->mode = DEFAULT_ANIMATION_MODE;
    471             */
    472 
    473475            KeyFrame* f1 = new KeyFrame;
    474476            f1->position = new Vector(-1.1, 0.0, 2.6);
     
    506508            this->simpleAnimation->addKeyFrame(f4);
    507509            this->simpleAnimation->start();
    508             //this->simpleAnimation->addKeyFrame(f3);
    509             //this->simpleAnimation->addKeyFrame(f2);
    510510            this->simpleAnimation->animatorEnd();
    511511
Note: See TracChangeset for help on using the changeset viewer.