Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8937 in orxonox.OLD for branches/single_player_map/src/lib/graphics


Ignore:
Timestamp:
Jun 30, 2006, 2:06:34 AM (18 years ago)
Author:
patrick
Message:

much better axis now

Location:
branches/single_player_map/src/lib/graphics/importer
Files:
2 edited

Legend:

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

    r8935 r8937  
    989989    dest     = worldEntity->getAbsCoor() +  box->center - Vector(0.0, 1.0, 0.0) * (box->halfLength[1] + BSP_Y_OFFSET);
    990990
    991     position1 = worldEntity->getAbsCoor() +  box->center + worldEntity->getAbsDirX() * (box->halfLength[0]  + BSP_X_OFFSET);
    992     dest1     = worldEntity->getAbsCoor() +  box->center - worldEntity->getAbsDirX() * (box->halfLength[0]  + BSP_X_OFFSET);
    993 
    994     position2 = worldEntity->getAbsCoor() +  box->center + worldEntity->getAbsDirZ() * (box->halfLength[2]  + BSP_Z_OFFSET);
    995     dest2     = worldEntity->getAbsCoor() +  box->center - worldEntity->getAbsDirZ() * (box->halfLength[2]  + BSP_Z_OFFSET);
     991    position1 = worldEntity->getAbsCoor() +  box->center - worldEntity->getAbsDirX() * (box->halfLength[0]  + BSP_X_OFFSET);
     992    dest1     = worldEntity->getAbsCoor() +  box->center + worldEntity->getAbsDirX() * (box->halfLength[0]  + BSP_X_OFFSET);
     993
     994    position2 = worldEntity->getAbsCoor() +  box->center - worldEntity->getAbsDirZ() * (box->halfLength[2]  + BSP_Z_OFFSET);
     995    dest2     = worldEntity->getAbsCoor() +  box->center + worldEntity->getAbsDirZ() * (box->halfLength[2]  + BSP_Z_OFFSET);
    996996
    997997  } else {
     
    10001000  }
    10011001
    1002 //   worldEntity->getAbsDirX().debug();
    1003 
     1002
     1003  PRINTF(0)("x and v\n");
     1004  worldEntity->getAbsDirX().debug();
     1005  worldEntity->getAbsDirV().debug();
    10041006
    10051007
  • branches/single_player_map/src/lib/graphics/importer/bsp_manager.h

    r8924 r8937  
    2828
    2929
    30 #define BSP_X_OFFSET 10.0f
     30#define BSP_X_OFFSET 20.0f
    3131#define BSP_Y_OFFSET 40.0f
    32 #define BSP_Z_OFFSET 10.0f
     32#define BSP_Z_OFFSET 20.0f
    3333
    3434
Note: See TracChangeset for help on using the changeset viewer.