Changeset 8892 in orxonox.OLD for branches/single_player_map/src/lib
- Timestamp:
- Jun 29, 2006, 12:04:17 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/lib/graphics/importer/bsp_manager.cc
r8889 r8892 918 918 void BspManager::checkCollisionBox(void) 919 919 {} 920 ; 920 921 921 922 922 void BspManager::TraceBox( Vector& inputStart, Vector& inputEnd, … … 952 952 953 953 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(); 968 957 969 958 bool SolidFlag = false; … … 971 960 Vector position1 = position; 972 961 Vector position2 = position + Vector(0.0,1.0,0.0); 962 Vector dest = worldEntity->getAbsCoor() - upDir*40.0f; // 973 963 Vector dest1 = position + forwardDir*4.0f; 974 964 Vector dest2 = position2 + forwardDir; 975 965 dest = position - Vector(0.0, 40.0,0.0); 966 Vector out = dest; 976 967 Vector out1; 977 968 Vector out2; … … 1000 991 1001 992 1002 // 993 // 1st Ray 1003 994 this->inputStart = position; 1004 995 this->inputEnd = dest; … … 1060 1051 out.x = dest1.x + (dest1.x -position1.x) * this->outputFraction; 1061 1052 xCollision = true; 1053 testPlane = this->collPlane; 1062 1054 } 1063 1055 if(this->outputAllSolid) { 1064 1056 SolidFlag = true; 1065 xCollision = true; 1057 xCollision = true; 1066 1058 } 1067 1059 //out.z = this->outputFraction; … … 1081 1073 out.z = out.z = dest2.z + (dest2.z -position2.z) * this->outputFraction; 1082 1074 zCollision = true; 1075 testPlane = this->collPlane; 1076 1083 1077 } 1084 1078 if(this->outputAllSolid) {
Note: See TracChangeset
for help on using the changeset viewer.