Changeset 4589 in orxonox.OLD for orxonox/trunk/src/lib/collision_detection/obb_tree.cc
- Timestamp:
- Jun 10, 2005, 11:42:38 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/collision_detection/obb_tree.cc
r4588 r4589 96 96 97 97 /* 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}}; 100 101 101 for(int i = 0; i < 4; ++i)102 for(int i = 0; i < length; ++i) 102 103 { 103 104 vertList[i][0] = data[i][0]; … … 106 107 } 107 108 108 this->spawnBVTree(1, vertList, 4);109 this->spawnBVTree(1, vertList, length); 109 110 110 111 PRINT(0)("= Spawning Tree: Finished\n");
Note: See TracChangeset
for help on using the changeset viewer.