Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 26, 2005, 4:13:11 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: now collision detection is accurate. Now I have to tune the code, so the cd becomes faster

File:
1 edited

Legend:

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

    r4701 r4704  
    3838int drawMode;
    3939int depth;
     40float iterata;
    4041tList<WorldEntity>* entityList;
    4142
     
    4344bool drawModel;
    4445
    45 TestEntity* a;
     46Environment* a;
    4647Environment* b;
    4748
     
    6869  entityList = new tList<WorldEntity>();
    6970
    70   a = new TestEntity(); a->setName("Clown1");
     71  //a = new TestEntity(); a->setName("Clown1");
     72  a = new Environment(); a->setName("Clown");
    7173  b = new Environment(); b->setName("Jaeger");
    7274  b->setRelCoor(0.0, 0.0, -10.0);
     
    9294  depth = 0;
    9395  dt = lastFrame = currentFrame = 0;
    94 
     96  iterata = 0.05f;
    9597
    9698  moduleHelp();
     
    198200          }
    199201          break;
     202        case SDLK_o:
     203          if(iterata == 0.0f)
     204          {
     205            iterata = 0.05f;
     206          }
     207          else
     208          {
     209            iterata = 0.0f;
     210          }
     211          break;
    200212
    201213      }
     
    227239  }
    228240
    229   b->shiftCoor(Vector(0.0, 0.0, 0.1));
     241  b->shiftCoor(Vector(0.0, 0.0, iterata));
    230242
    231243
Note: See TracChangeset for help on using the changeset viewer.