Changeset 3545 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Mar 14, 2005, 11:50:27 AM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/null_parent.cc
r3544 r3545 74 74 void NullParent::update (float timeStamp) 75 75 { 76 77 printf ("NullParent::update - (%f, %f, %f)\n", this->absCoordinate.x, this->absCoordinate.y, this->absCoordinate.z); 76 78 this->absCoordinate = this->relCoordinate; 77 79 this->absDirection = parent->getAbsDir () * this->relDirection; -
orxonox/trunk/src/lib/coord/p_node.cc
r3544 r3545 42 42 this->bAbsDirChanged = false; 43 43 this->parent = NULL; 44 45 printf("PNode::PNode() - constructor, now adding\n"); 44 this->objectName = NULL; 45 46 46 NullParent* np = NullParent::getInstance(); 47 47 np->addChild(this); 48 printf("PNode::PNode() - finished adding\n");49 48 } 50 49 … … 66 65 this->bAbsDirChanged = false; 67 66 this->parent = parent; 67 this->objectName = NULL; 68 68 69 69 parent->addChild (this); … … 86 86 PNode::PNode(char* name) 87 87 { 88 printf("PNode::PNode(char*) - start\n");89 88 this->children = new tList<PNode>(); 90 89 this->bRelCoorChanged = true; … … 93 92 this->bAbsDirChanged = false; 94 93 this->parent = NULL; 95 printf("PNode::PNode(char*) - end\n");94 this->objectName = NULL; 96 95 } 97 96 … … 355 354 356 355 */ 357 356 //pNode->remove(); 358 357 this->children->remove (pNode); 359 358 pNode->parent = NULL; … … 442 441 void PNode::update (float timeStamp) 443 442 { 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); 445 444 // printf("%s", this->objectName); 446 445 … … 449 448 if( this->bAbsCoorChanged /*&& this->timeStamp != DataTank::timeStamp*/) 450 449 { 451 printf("PNode::update () - this->bAbsCoorChanged = true\n");452 450 /* if you have set the absolute coordinates this overrides all other changes */ 453 451 this->relCoordinate = this->absCoordinate - parent->getAbsCoor (); … … 483 481 if( this->bAbsCoorChanged /*&& this->timeStamp != DataTank::timeStamp*/) 484 482 { 485 printf("PNode::update () - this->bAbsCoorChanged = true\n");486 483 /* if you have set the absolute coordinates this overrides all other changes */ 487 484 this->relCoordinate = this->absCoordinate - parent->getAbsCoor (); -
orxonox/trunk/src/story_entities/world.cc
r3544 r3545 222 222 223 223 // 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"); 225 226 this->localCamera->addChild(this->skySphere); 226 227 this->skySphere->setMode(MOVEMENT); … … 249 250 TrackNode* tn = TrackNode::getInstance(); 250 251 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);257 252 258 253 //localCamera->setParent(TrackNode::getInstance()); … … 694 689 while( !this->bQuitOrxonox && !this->bQuitCurrentGame) /* \todo implement pause */ 695 690 { 691 printf("World::mainloop() - number of entities: %i\n", this->entities->getSize()); 696 692 // Network 697 693 this->synchronize (); -
orxonox/trunk/src/track_node.cc
r3544 r3545 42 42 { 43 43 this->setClassName("TrackNode"); 44 this->setName("TrackNode"); /* absolete but still used... */ 44 45 singletonRef = this; 45 46
Note: See TracChangeset
for help on using the changeset viewer.