Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3505 in orxonox.OLD


Ignore:
Timestamp:
Mar 11, 2005, 9:08:55 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/trackManager: added trackNode, but there is a segfault while deleting the pNodes

Location:
orxonox/branches/trackManager/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/trackManager/src/story_entities/world.cc

    r3500 r3505  
    222222            this->localCamera->setName ("camera");
    223223            this->localCamera->bind (myPlayer);
    224             this->localPlayer->addChild (this->localCamera);
     224            //this->localPlayer->addChild (this->localCamera);
    225225
    226226            // Create SkySphere
     
    240240
    241241            trackManager->setBindSlave(TrackNode::getInstance());
    242             env->setParent(TrackNode::getInstance());
     242            TrackNode::getInstance()->addChild(myPlayer);
     243            TrackNode::getInstance()->addChild(localCamera);
    243244
    244245            break;
  • orxonox/branches/trackManager/src/track_node.cc

    r3500 r3505  
    4141TrackNode::TrackNode ()
    4242{
    43   this->setParent(NullParent::getInstance());
     43  NullParent::getInstance()->addChild(this);
    4444  this->trackManager = TrackManager::getInstance();
    4545  this->mode = ALL;
  • orxonox/branches/trackManager/src/world_entities/player.cc

    r3498 r3505  
    202202  //l->dist = l->dist + travelSpeed * time;
    203203 
    204   Vector* shift = new Vector (this->travelSpeed * time, 0, 0);
    205   this->shiftCoor (shift);
     204  //Vector* shift = new Vector (this->travelSpeed * time, 0, 0);
     205  //  this->shiftCoor (shift);
    206206 
    207207  /* this updates the player position on the track - user interaction */
Note: See TracChangeset for help on using the changeset viewer.