Changeset 7660 in orxonox.OLD for branches/cd
- Timestamp:
- May 18, 2006, 12:15:48 AM (19 years ago)
- Location:
- branches/cd/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cd/src/lib/collision_detection/obb_tree_node.cc
r7658 r7660 131 131 for(int j = 0; j < 3; ++j) 132 132 { 133 PRINTF(2)(" vertex[%i]: %f, %f, %f\n", j, modelInf.pVertices[modelInf.pTriangles[triangleIndexes[i]].indexToVertices[j]]); 133 PRINTF(2)(" vertex[%i]: %f, %f, %f\n", j, (&modelInf.pVertices[modelInf.pTriangles[triangleIndexes[i]].indexToVertices[j]])[0], 134 (&modelInf.pVertices[modelInf.pTriangles[triangleIndexes[i]].indexToVertices[j]])[1], 135 (&modelInf.pVertices[modelInf.pTriangles[triangleIndexes[i]].indexToVertices[j]])[2]); 134 136 } 135 137 } … … 231 233 } 232 234 //box.center = center; 235 //FIXME setting center to 0,0,0 233 236 box.center = Vector(); 234 237 … … 281 284 box.axis[2] = axis[2]; 282 285 283 //box.axis[0] = Vector(1,0,0);284 //box.axis[1] = Vector(0,1,0);285 //box.axis[2] = Vector(0,0,1);286 box.axis[0] = Vector(1,0,0); 287 box.axis[1] = Vector(0,1,0); 288 box.axis[2] = Vector(0,0,1); 286 289 287 290 PRINTF(3)("Eigenvectors:\n"); … … 391 394 392 395 // FIXME: += anstatt -= ????????? verwirr 393 box.center.x -= centerOffset[0];394 box.center.y -= centerOffset[1];395 box.center.z -= centerOffset[2];396 box.center.x += centerOffset[0]; 397 box.center.y += centerOffset[1]; 398 box.center.z += centerOffset[2]; 396 399 397 400 PRINTF(3)("\n"); -
branches/cd/src/subprojects/collision_detection/collision_detection.cc
r7658 r7660 90 90 printf("no path specified, using default model: models/ships/fighter.obj\n\n"); 91 91 printf("----------------------- WARNING ---------------------\n"); 92 b = new CollisionTestEntity("models/test/cd_test_ 1.obj"); b->setName("Jaeger");92 b = new CollisionTestEntity("models/test/cd_test_0.obj"); b->setName("Jaeger"); 93 93 } 94 94 // b->setRelCoor(0.0, 0.0, -20.0); … … 267 267 while( entity != NULL) 268 268 { 269 if( likely(drawModel))269 //if( likely(drawModel)) 270 270 entity->draw(); 271 271 entity->drawBVTree(depth, drawMode);
Note: See TracChangeset
for help on using the changeset viewer.