Changeset 3545 in orxonox.OLD for orxonox/trunk/src/lib
- Timestamp:
- Mar 14, 2005, 11:50:27 AM (20 years ago)
- Location:
- orxonox/trunk/src/lib/coord
- Files:
-
- 2 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 ();
Note: See TracChangeset
for help on using the changeset viewer.