Changeset 8329 in orxonox.OLD for branches/bsp_model/src/lib/graphics/importer/bsp_manager.cc
- Timestamp:
- Jun 12, 2006, 7:54:50 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/graphics/importer/bsp_manager.cc
r8318 r8329 873 873 void BspManager::checkCollision(WorldEntity* worldEntity) 874 874 { 875 Vector position = worldEntity->get AbsCoor();875 Vector position = worldEntity->getLastAbsCoor(); 876 876 877 877 … … 881 881 Vector upDir = worldEntity->getAbsDirY(); 882 882 Vector dest = position; 883 883 /* 884 884 dest.x += forwardDir.x; 885 885 dest.y += forwardDir.y; 886 886 dest.z += forwardDir.z; 887 */ 888 889 dest = worldEntity->getAbsCoor(); 887 890 Vector out = dest; 888 891 … … 913 916 this->checkCollisionRayN(this->root,0.0f,1.0f, &position1, &dest1 ); 914 917 if(this->outputFraction == 1.0f) out1 = dest; 915 else { 918 else {( 916 919 collision = true; 917 920 out1.x = position1.x + (dest1.x -position1.x) * this->outputFraction; … … 934 937 935 938 float height = 40; 936 939 this->outputAllSolid = false; 937 940 938 941 this->checkCollisionRayN(this->root,0.0f,1.0f, &position, &dest );
Note: See TracChangeset
for help on using the changeset viewer.