Changeset 8933 in orxonox.OLD for branches/single_player_map
- Timestamp:
- Jun 30, 2006, 1:12:57 AM (18 years ago)
- Location:
- branches/single_player_map/src/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/lib/collision_reaction/cr_physics_ground_walk.cc
r8932 r8933 96 96 // collision in the x-axis 97 97 case COLLISION_TYPE_AXIS_X: 98 front = collPos.x - box->halfLength[ 0];98 front = collPos.x - box->halfLength[2]; // should be [0] 99 99 100 100 // object is beneath the plane (ground) … … 134 134 case COLLISION_TYPE_AXIS_Z: 135 135 136 side = collPos.z - box->halfLength[ 2];136 side = collPos.z - box->halfLength[0]; // should be [2] 137 137 138 138 // object is beneath the plane (ground) 139 139 if( side <= 0.0f ) 140 140 { 141 entity->shiftCoor(Vector(0.0f, 0.0f, side)); 141 Vector backoff = entity->getAbsDirX() * side; 142 entity->shiftCoor(backoff); 143 // entity->shiftCoor(Vector(0.0f, 0.0f, side)); 142 144 } 143 145 // object is already in the wall -
branches/single_player_map/src/lib/graphics/importer/bsp_manager.cc
r8932 r8933 993 993 994 994 995 position2 = worldEntity->getAbsCoor() + box->center + box->axis[2] * box->halfLength[2] * 2.0f;996 dest2 = worldEntity->getAbsCoor() + box->center - box->axis[2] * box->halfLength[2] * 2.0f;995 position2 = worldEntity->getAbsCoor() + box->center + box->axis[2] * box->halfLength[2] * 0.0f; 996 dest2 = worldEntity->getAbsCoor() + box->center - box->axis[2] * box->halfLength[2] * 0.0f; 997 997 998 998 } else { … … 1120 1120 } 1121 1121 if(xCollision) { 1122 worldEntity->registerCollision(COLLISION_TYPE_AXIS_ Z, this->parent, worldEntity, Vector(testPlane->x, testPlane->y, testPlane->z),dest1 , SolidFlag);1122 worldEntity->registerCollision(COLLISION_TYPE_AXIS_X , this->parent, worldEntity, Vector(testPlane->x, testPlane->y, testPlane->z),dest1 , SolidFlag); 1123 1123 } 1124 1124 if(zCollision) { 1125 worldEntity->registerCollision(COLLISION_TYPE_AXIS_ X, this->parent, worldEntity, Vector(testPlane->x, testPlane->y, testPlane->z), dest2 , SolidFlag);1125 worldEntity->registerCollision(COLLISION_TYPE_AXIS_Z , this->parent, worldEntity, Vector(testPlane->x, testPlane->y, testPlane->z), dest2 , SolidFlag); 1126 1126 } 1127 1127
Note: See TracChangeset
for help on using the changeset viewer.