Changeset 9091 in orxonox.OLD for branches/presentation
- Timestamp:
- Jul 4, 2006, 2:28:50 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/lib/graphics/importer/bsp_manager.cc
r9089 r9091 1327 1327 1328 1328 1329 1330 /* Z Ray left */ 1331 // init some member variables before collision check 1332 this->outputStartsOut = true; 1333 this->outputAllSolid = false; 1334 this->outputFraction = 1.0f; 1335 this->inputStart = position; 1336 this->inputEnd = left; 1337 this->checkCollisionRayN(this->root, 0.0f, 1.0f, &position, &left); 1338 1339 1340 // collision occured 1341 if( this->outputFraction < 1.0f ) 1342 { 1343 collPos = position + (left - position) * this->outputFraction; 1344 zCollisionLeft = true; 1345 testPlane = this->collPlane; 1346 } 1347 if(this->outputAllSolid ) 1348 { 1349 this->collPlane = new plane; 1350 this->collPlane->x = 0.0f; 1351 this->collPlane->y = 0.0f; 1352 this->collPlane->z = 0.0f; 1353 testPlane = this->collPlane; 1354 1355 SolidFlag = true; 1356 zCollisionLeft = true; 1357 } 1358 1359 1360 if( zCollisionLeft) { 1361 entity->registerCollision(COLLISION_TYPE_AXIS_Z_NEG , this->parent, 1362 entity, 1363 Vector(testPlane->x, testPlane->y, testPlane->z), 1364 collPos , SolidFlag); 1365 } 1366 1329 1367 } 1330 1368
Note: See TracChangeset
for help on using the changeset viewer.