Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 24, 2005, 6:10:13 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: now ready to implement the collision detection algorithm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/subprojects/collision_detection/collision_detection.cc

    r4688 r4694  
    6565  entityList = new tList<WorldEntity>();
    6666
    67   TestEntity* a = new TestEntity();
    68   Environment* b = new Environment();
     67  TestEntity* a = new TestEntity(); a->setName("Clown1");
     68  Environment* b = new Environment(); b->setName("Jaeger");
    6969  b->setRelCoor(0.0, 0.0, -10.0);
     70
     71  TestEntity* c = new TestEntity(); c->setName("Colwn2");
     72  c->setRelCoor(0.0, 0.0, -20.0);
    7073
    7174  entityList->add(a);
    7275  entityList->add(b);
     76  entityList->add(c);
    7377
    7478  CDEngine::getInstance()->setEntityList(entityList);
     
    205209  dt = currentFrame - lastFrame;
    206210
    207   if( dt > 10)
     211  if( dt > 0)
    208212  {
    209213    float fps = 1000/dt;
    210214
    211215          // temporary, only for showing how fast the text-engine is
    212     char tmpChar[20];
    213     sprintf(tmpChar, "fps: %4.0f", fps);
     216    printf("we got %f fps\n", fps);
    214217  }
    215218  else
Note: See TracChangeset for help on using the changeset viewer.