Changeset 3265 in orxonox.OLD for orxonox/branches/parenting/src/world.cc
- Timestamp:
- Dec 24, 2004, 1:45:15 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/parenting/src/world.cc
r3233 r3265 23 23 #include "camera.h" 24 24 #include "environment.h" 25 #include "p_node.h" 25 26 26 27 using namespace std; … … 78 79 cn->addToWorld(this); 79 80 cn->enable(true); 81 82 /* this is only for test purposes */ 83 this->debug (); 80 84 } 81 85 … … 571 575 void World::debug() 572 576 { 573 //List<WorldEntity> *l; 577 printf("World::debug() - starting debug\n"); 578 PNode* p1 = new PNode (); 579 PNode* p2 = new PNode (new Vector(2, 2, 2), p1); 580 PNode* p3 = new PNode (new Vector(4, 4, 4), p1); 581 PNode* p4 = new PNode (new Vector(6, 6, 6), p2); 582 583 p1->setMode (ALL); 584 585 //p1->addChild (p2); 586 // p1->addChild (p3); 587 //p2->addChild (p4); 588 589 p1->debug (); 590 p2->debug (); 591 p3->debug (); 592 p4->debug (); 593 594 p1->shiftCoor (new Vector(-1, -1, -1)); 595 596 printf("World::debug() - shift\n"); 597 p1->debug (); 598 p2->debug (); 599 p3->debug (); 600 p4->debug (); 601 602 p1->update (1); 603 604 printf("World::debug() - update\n"); 605 p1->debug (); 606 p2->debug (); 607 p3->debug (); 608 p4->debug (); 609 610 611 /* 574 612 WorldEntity* entity; 575 576 613 printf("counting all entities\n"); 577 614 printf("World::debug() - enumerate()\n"); … … 582 619 entity = entities->nextElement(); 583 620 } 621 */ 584 622 } 585 623 … … 800 838 return false; 801 839 } 840
Note: See TracChangeset
for help on using the changeset viewer.