Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8892 in orxonox.OLD


Ignore:
Timestamp:
Jun 29, 2006, 12:04:17 AM (18 years ago)
Author:
bottac
Message:

Just a small cleanup.

File:
1 edited

Legend:

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

    r8889 r8892  
    918918void BspManager::checkCollisionBox(void)
    919919{}
    920 ;
     920
    921921
    922922void BspManager::TraceBox( Vector& inputStart, Vector& inputEnd,
     
    952952
    953953
    954   Vector forwardDir = worldEntity->getAbsDirX();
    955 
    956 
    957   Vector upDir = worldEntity->getAbsDirY();
    958   upDir.x = 0.0;
    959   upDir.y = 1.0;
    960   upDir.z = 0.0;
    961   Vector dest;
    962 
    963 
    964   Vector position = worldEntity->getAbsCoor();       //+ upDir*10.0f ;
    965   dest = worldEntity->getAbsCoor() - upDir*40.0f; //
    966   Vector out = dest;
    967 
     954  Vector forwardDir = Vector(0.0,0.0,1.0);
     955  Vector upDir = Vector(0.0,1.0,0.0);
     956  Vector position = worldEntity->getAbsCoor();
    968957
    969958  bool SolidFlag = false;
     
    971960  Vector position1 = position;
    972961  Vector position2 = position + Vector(0.0,1.0,0.0);
     962  Vector dest = worldEntity->getAbsCoor() - upDir*40.0f; //
    973963  Vector dest1 = position + forwardDir*4.0f;
    974964  Vector dest2 = position2 + forwardDir;
    975965  dest = position - Vector(0.0, 40.0,0.0);
     966  Vector out = dest;
    976967  Vector out1;
    977968  Vector out2;
     
    1000991
    1001992
    1002   //
     993  // 1st Ray
    1003994  this->inputStart =  position;
    1004995  this->inputEnd =   dest;
     
    10601051      out.x = dest1.x + (dest1.x -position1.x) * this->outputFraction;
    10611052      xCollision = true;
     1053      testPlane = this->collPlane;
    10621054    }
    10631055    if(this->outputAllSolid) {
    10641056      SolidFlag = true;
    1065       xCollision = true;   
     1057      xCollision = true; 
    10661058    }
    10671059    //out.z = this->outputFraction;
     
    10811073        out.z = out.z = dest2.z + (dest2.z -position2.z) * this->outputFraction;
    10821074        zCollision = true;
     1075        testPlane = this->collPlane;
     1076
    10831077      }
    10841078      if(this->outputAllSolid) {
Note: See TracChangeset for help on using the changeset viewer.