Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 8, 2005, 11:59:09 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: some more changes to display the data correctly

File:
1 edited

Legend:

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

    r4551 r4553  
    9393 
    9494  /* generate some test vertices */
    95   sVec3D vertList[] = {{1.0, 3.0, 4.0},{3.5, 6.2, 9.6},{6.4, 9.0, 2.0}};
     95  sVec3D* vertList = new sVec3D[3];
     96  sVec3D data[]  = {{0.0, 0.0, 0.0},{5.0, 0.0, 10.0},{-5.0, 0.0, 10.0}};
     97
     98  for(int i = 0; i < 3; ++i)
     99    {
     100      vertList[i][0] = data[i][0];
     101      vertList[i][1] = data[i][1];
     102      vertList[i][2] = data[i][2];
     103    }
    96104
    97105  this->spawnBVTree(1, vertList, 3);
Note: See TracChangeset for help on using the changeset viewer.