Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 10, 2005, 11:42:38 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: solved last accuracy problem. all is well now. the box could be a little more tight

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/collision_detection/obb_tree.cc

    r4588 r4589  
    9696
    9797  /* generate some test vertices */
    98   sVec3D* vertList = new sVec3D[4];
    99   sVec3D data[]  = {{0.0, 0.0, 0.0},{2.0, -8.0, 5.0},{10.0, 5.0, 0.0}, {5.0, 4.0, 1.0}};
     98  int const length = 5;
     99  sVec3D* vertList = new sVec3D[length];
     100  sVec3D data[length]  = {{5.0, 0.0, 0.0},{2.0, -8.0, 5.0},{14.0, 5.0, 0.0}, {5.0, 4.0, 1.0}, {12.0, 2.0, 8.0}};
    100101
    101   for(int i = 0; i < 4; ++i)
     102  for(int i = 0; i < length; ++i)
    102103    {
    103104      vertList[i][0] = data[i][0];
     
    106107    }
    107108
    108   this->spawnBVTree(1, vertList, 4);
     109  this->spawnBVTree(1, vertList, length);
    109110
    110111  PRINT(0)("=  Spawning Tree: Finished\n");
Note: See TracChangeset for help on using the changeset viewer.