Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Mar 14, 2005, 12:35:46 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: a little enhancement in trackmanager to turn the tracknode into the moving direction. since i have no real up-vector, it doensnt turn right into the moving direction. but almost

File:
1 edited

Legend:

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

    r3538 r3539  
    235235            this->spawn(env);
    236236
     237            /*
    237238            Vector* es = new Vector (50, 2, 0);
    238239            Quaternion* qs = new Quaternion ();
     
    240241            pr->setName("primitive");
    241242            this->spawn(pr, this->localPlayer, es, qs, ROTATION);
    242            
     243            */
     244
    243245
    244246            /*monitor progress*/
     
    246248
    247249            //      trackManager->setBindSlave(env);
    248             TrackNode::getInstance()->addChild(myPlayer);
     250            TrackNode* tn = TrackNode::getInstance();
     251            tn->addChild(myPlayer);
     252
     253            //Vector v(1.0, 0.0, 0.0);
     254            //Quaternion* q = new Quaternion(90.0, v);
     255            //this->relDirection = this->relDirection * q;
     256           
     257            //tn->setAbsDir(q);
     258
    249259            //localCamera->setParent(TrackNode::getInstance());
    250260            this->localPlayer->addChild (this->localCamera);
Note: See TracChangeset for help on using the changeset viewer.