Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8926 in orxonox.OLD for branches/single_player_map/src/lib


Ignore:
Timestamp:
Jun 29, 2006, 11:11:20 PM (18 years ago)
Author:
bottac
Message:

collision coordinates fixed.

File:
1 edited

Legend:

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

    r8924 r8926  
    10611061    if(this->outputFraction < 1.0f) {
    10621062      out.x = dest1.x + (dest1.x -position1.x) * this->outputFraction;
     1063      dest1 = dest1 + (dest1 -position1) * this->outputFraction;
    10631064      xCollision = true;
    10641065      testPlane = this->collPlane;
     
    10841085      if(this->outputFraction < 1.0f ) {
    10851086        out.z = out.z = dest2.z + (dest2.z -position2.z) * this->outputFraction;
     1087        dest2 = dest2 + (dest2 -position2) * this->outputFraction;
    10861088        zCollision = true;
    10871089        testPlane = this->collPlane;
     
    11061108}
    11071109  if(xCollision) {
    1108     worldEntity->registerCollision(COLLISION_TYPE_AXIS_X , this->parent, worldEntity, Vector(testPlane->x, testPlane->y, testPlane->z), out, SolidFlag);
     1110    worldEntity->registerCollision(COLLISION_TYPE_AXIS_X , this->parent, worldEntity, Vector(testPlane->x, testPlane->y, testPlane->z),dest1 , SolidFlag);
    11091111  }
    11101112  if(zCollision) {
    1111     worldEntity->registerCollision(COLLISION_TYPE_AXIS_Z , this->parent, worldEntity, Vector(testPlane->x, testPlane->y, testPlane->z), out, SolidFlag);
     1113    worldEntity->registerCollision(COLLISION_TYPE_AXIS_Z , this->parent, worldEntity, Vector(testPlane->x, testPlane->y, testPlane->z), dest2 , SolidFlag);
    11121114  }
    11131115
Note: See TracChangeset for help on using the changeset viewer.