Changeset 8699 in orxonox.OLD for branches/bsp_model/src/lib/graphics
- Timestamp:
- Jun 22, 2006, 2:32:46 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/graphics/importer/bsp_manager.cc
r8693 r8699 952 952 Vector position; 953 953 Vector out; 954 float height; 954 955 955 956 if( box != NULL) 957 { 958 forwardDir = worldEntity->getAbsDirX(); 959 forwardDir = forwardDir * box->halfLength[0]; 960 961 upDir = Vector(0,1,0) * box->halfLength[1]; 962 963 position = worldEntity->getAbsCoor() + box->center + box->axis[1] * box->halfLength[1]; 964 dest = worldEntity->getAbsCoor() + box->center - box->axis[1] * box->halfLength[1]; 965 out = dest; 966 967 height = box->halfLength[1]; 968 } 969 else 956 970 { 957 971 forwardDir = worldEntity->getAbsDirX(); … … 964 978 dest; 965 979 966 position = worldEntity->getAbsCoor() + box->center + box->axis[1] * box->halfLength[1];967 dest = worldEntity->getAbsCoor() + box->center - box->axis[1] * box->halfLength[1];968 out = dest;969 970 }971 else972 {973 forwardDir = worldEntity->getAbsDirX();974 forwardDir = forwardDir * 8.0f;975 976 upDir = worldEntity->getAbsDirY();977 upDir.x = 0.0;978 upDir.y = 1.0;979 upDir.z = 0.0;980 dest;981 982 980 position = worldEntity->getAbsCoor() + upDir*5.0f; 983 981 dest = worldEntity->getAbsCoor() - upDir*40.0f; // 984 982 out = dest; 985 983 984 height = 40; 986 985 } 987 986 … … 994 993 Vector dest1 = position1 + forwardDir; 995 994 Vector dest2 = position2 + forwardDir; 996 dest = position - Vector(0.0, 40.0,0.0);995 // dest = position - Vector(0.0, 40.0,0.0); 997 996 Vector out1; 998 997 Vector out2; 999 998 1000 999 1001 float height = 40; 1000 1002 1001 1003 1002 this->inputStart = position;
Note: See TracChangeset
for help on using the changeset viewer.