Changeset 9235 in orxonox.OLD for trunk/src/lib/graphics/importer/bsp_manager.cc
- Timestamp:
- Jul 5, 2006, 4:39:02 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/bsp_manager.cc
r9110 r9235 53 53 { 54 54 55 this->lastTex = -1; 55 56 this->parent = parent; 56 57 /*// open a BSP file … … 101 102 return 0; 102 103 } 104 105 103 106 /* 104 107 BspManager::BspManager(const char* fileName, float scale) … … 270 273 const float dMaxs = dir.x*(float)curLeaf.maxs[0] +dir.y*(float)curLeaf.maxs[1] +dir.z*(float)curLeaf.maxs[2] - dist; 271 274 272 if(dMins < - 50.0 && dMaxs < - 50.0) {275 if(dMins < -70.0 && dMaxs < -70.0) { 273 276 continue; 274 277 } … … 1371 1374 else 1372 1375 { 1373 if( this->outputFraction == 1.0f) 1376 if( this->outputFraction == 1.0f) // No collision Detected 1374 1377 { 1375 if( this->outputAllSolid ) 1378 if( this->outputAllSolid ) 1376 1379 { 1377 1380 this->collPlane = new plane; … … 1382 1385 SolidFlag = true; 1383 1386 } 1384 else 1387 else // No collision happened 1385 1388 { 1386 1389 yCollisionDown = false; … … 1388 1391 } 1389 1392 } 1390 else 1393 else // A collision has happended 1391 1394 { 1392 1395 yCollisionDown = true; 1393 1396 collPos = position + (down - position) * this->outputFraction; 1394 this->out = collPos; // why this????1395 1397 } 1396 1398 }
Note: See TracChangeset
for help on using the changeset viewer.