Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3265 in orxonox.OLD for orxonox/branches/parenting/src/world.cc


Ignore:
Timestamp:
Dec 24, 2004, 1:45:15 PM (21 years ago)
Author:
patrick
Message:

orxonox/branches/parenting: now finished the parenting class more or less - yet sill have som bugs that i have to find.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/parenting/src/world.cc

    r3233 r3265  
    2323#include "camera.h"
    2424#include "environment.h"
     25#include "p_node.h"
    2526
    2627using namespace std;
     
    7879  cn->addToWorld(this);
    7980  cn->enable(true);
     81
     82  /* this is only for test purposes */
     83  this->debug ();
    8084}
    8185
     
    571575void World::debug()
    572576{
    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  /*
    574612  WorldEntity* entity;
    575  
    576613  printf("counting all entities\n");
    577614  printf("World::debug() - enumerate()\n");
     
    582619      entity = entities->nextElement();
    583620    }
     621  */
    584622}
    585623
     
    800838  return false;
    801839}
     840
Note: See TracChangeset for help on using the changeset viewer.