Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9086 in orxonox.OLD for branches/presentation/src/lib/graphics


Ignore:
Timestamp:
Jul 4, 2006, 1:52:10 AM (18 years ago)
Author:
patrick
Message:

more comments and less variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/lib/graphics/importer/bsp_manager.cc

    r9084 r9086  
    11461146
    11471147
    1148   Vector forwardDir = Vector(0.0,0.0,1.0);
    1149   Vector upDir = Vector(0.0,1.0,0.0);
     1148/*  Vector forwardDir = Vector(0.0,0.0,1.0);
     1149  Vector upDir = Vector(0.0,1.0,0.0);*/
    11501150  Vector position = entity->getAbsCoor();
    11511151
     
    11541154  plane* testPlane = NULL;
    11551155
    1156   bool xCollision = false;
     1156  bool xCollisionRight = false;
     1157  bool xCollisionLeft = false;
    11571158
    11581159
     
    11661167  Vector dirX =  entity->getAbsDirX(); dirX.y = 0.0f; dirX.normalize();
    11671168
     1169  // calculate the rays
    11681170  if( box != NULL)
    11691171  {
     
    11731175  else
    11741176  {
    1175     Vector position2 = position + Vector(0.0, 1.0,0.0);
    1176     Vector position3 = position;
    1177     Vector position4 = position + Vector(0.0, 1.0, 0.0);
    1178 
    1179     left  = position + forwardDir * 4.0f;
    1180     right = position2 + forwardDir * 4.0;
    1181   }
    1182 
    1183 //     dest1
    1184 //     dest2
     1177    left  = position + dirX * 4.0f;
     1178    right = position + Vector(0.0, 1.0, 0.0) + dirX * 4.0;
     1179  }
    11851180
    11861181
     
    11981193  {
    11991194    collPos = position + (right - position) * this->outputFraction;
    1200     xCollision = true;
     1195    xCollisionRight = true;
    12011196    testPlane = this->collPlane;
    12021197  }
     
    12091204    testPlane = this->collPlane;
    12101205    SolidFlag = true;
    1211     xCollision = true;
     1206    xCollisionRight = true;
    12121207  }
    12131208
    12141209  // collision registration
    1215   if( xCollision) {
     1210  if( xCollisionRight) {
    12161211    entity->registerCollision(COLLISION_TYPE_AXIS_X ,
    12171212                              this->parent, entity,
Note: See TracChangeset for help on using the changeset viewer.