Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3545 in orxonox.OLD for orxonox/trunk


Ignore:
Timestamp:
Mar 14, 2005, 11:50:27 AM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: minor changes in PNode debug output

Location:
orxonox/trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/coord/null_parent.cc

    r3544 r3545  
    7474void NullParent::update (float timeStamp)
    7575{
     76
     77  printf ("NullParent::update - (%f, %f, %f)\n", this->absCoordinate.x, this->absCoordinate.y, this->absCoordinate.z);
    7678  this->absCoordinate = this->relCoordinate;
    7779  this->absDirection = parent->getAbsDir () * this->relDirection;
  • orxonox/trunk/src/lib/coord/p_node.cc

    r3544 r3545  
    4242  this->bAbsDirChanged = false;
    4343  this->parent = NULL;
    44 
    45   printf("PNode::PNode() - constructor, now adding\n");
     44  this->objectName = NULL;
     45
    4646  NullParent* np = NullParent::getInstance();
    4747  np->addChild(this);
    48   printf("PNode::PNode() - finished adding\n");
    4948}
    5049
     
    6665  this->bAbsDirChanged = false;
    6766  this->parent = parent;
     67  this->objectName = NULL;
    6868
    6969  parent->addChild (this);
     
    8686PNode::PNode(char* name)
    8787{
    88   printf("PNode::PNode(char*) - start\n");
    8988  this->children = new tList<PNode>();
    9089  this->bRelCoorChanged = true;
     
    9392  this->bAbsDirChanged = false;
    9493  this->parent = NULL;
    95   printf("PNode::PNode(char*) - end\n");
     94  this->objectName = NULL;
    9695}
    9796
     
    355354
    356355  */
    357 
     356  //pNode->remove();
    358357  this->children->remove (pNode);
    359358  pNode->parent = NULL;
     
    442441void PNode::update (float timeStamp)
    443442{
    444   //printf ("PNode::update - %s - (%f, %f, %f)\n", this->objectName, this->absCoordinate.x, this->absCoordinate.y, this->absCoordinate.z);
     443  printf ("PNode::update - %s - (%f, %f, %f)\n", this->objectName, this->absCoordinate.x, this->absCoordinate.y, this->absCoordinate.z);
    445444  // printf("%s", this->objectName);
    446445
     
    449448          if( this->bAbsCoorChanged /*&& this->timeStamp != DataTank::timeStamp*/)
    450449            {
    451               printf("PNode::update () - this->bAbsCoorChanged = true\n");
    452450              /* if you have set the absolute coordinates this overrides all other changes */
    453451              this->relCoordinate = this->absCoordinate - parent->getAbsCoor ();
     
    483481          if( this->bAbsCoorChanged /*&& this->timeStamp != DataTank::timeStamp*/)
    484482            {
    485               printf("PNode::update () - this->bAbsCoorChanged = true\n");
    486483              /* if you have set the absolute coordinates this overrides all other changes */
    487484              this->relCoordinate = this->absCoordinate - parent->getAbsCoor ();
  • orxonox/trunk/src/story_entities/world.cc

    r3544 r3545  
    222222
    223223            // Create SkySphere
    224             skySphere = new Skysphere("../data/pictures/sky-replace.jpg");
     224            this->skySphere = new Skysphere("../data/pictures/sky-replace.jpg");
     225            this->skySphere->setName("SkySphere");
    225226            this->localCamera->addChild(this->skySphere);
    226227            this->skySphere->setMode(MOVEMENT);
     
    249250            TrackNode* tn = TrackNode::getInstance();
    250251            tn->addChild(myPlayer);
    251 
    252             //Vector v(1.0, 0.0, 0.0);
    253             //Quaternion* q = new Quaternion(90.0, v);
    254             //this->relDirection = this->relDirection * q;
    255            
    256             //tn->setAbsDir(q);
    257252
    258253            //localCamera->setParent(TrackNode::getInstance());
     
    694689  while( !this->bQuitOrxonox && !this->bQuitCurrentGame) /* \todo implement pause */
    695690    {
     691      printf("World::mainloop() - number of entities: %i\n", this->entities->getSize());
    696692      // Network
    697693      this->synchronize ();
  • orxonox/trunk/src/track_node.cc

    r3544 r3545  
    4242{
    4343  this->setClassName("TrackNode");
     44  this->setName("TrackNode"); /* absolete but still used... */
    4445  singletonRef = this;
    4546
Note: See TracChangeset for help on using the changeset viewer.