Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 29, 2006, 10:47:05 PM (18 years ago)
Author:
patrick
Message:

collision reaction refine

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

    r8922 r8924  
    987987  if( box != NULL) {
    988988    position = worldEntity->getAbsCoor() +  box->center + box->axis[1] * box->halfLength[1];
    989     dest     = worldEntity->getAbsCoor() +  box->center - box->axis[1] * box->halfLength[1] * 40.0;
     989    dest     = worldEntity->getAbsCoor() +  box->center - box->axis[1] * box->halfLength[1]  * 40.0f;
    990990
    991991    position1 = worldEntity->getAbsCoor() +  box->center + box->axis[0] * box->halfLength[0] * 2.0f;
    992     dest1     = worldEntity->getAbsCoor() +  box->center - box->axis[0] * box->halfLength[0] *2.0f;
     992    dest1     = worldEntity->getAbsCoor() +  box->center - box->axis[0] * box->halfLength[0] * 2.0f;
    993993
    994994
  • branches/single_player_map/src/lib/graphics/importer/bsp_manager.h

    r8910 r8924  
    2828
    2929
     30#define BSP_X_OFFSET 10.0f
     31#define BSP_Y_OFFSET 40.0f
     32#define BSP_Z_OFFSET 10.0f
     33
    3034
    3135// FORWARD DECLARATIONS
     
    5660
    5761  BspManager(const char* fileName, float scale = 0.4f);
    58  
     62
    5963  // Deconstructor
    6064  ~BspManager();
    61  
    62  
     65
     66
    6367
    6468  // Functions
     
    106110  Vector inputStart;
    107111  Vector inputEnd;
    108  
     112
    109113  Vector traceMins; //!< Mins of current bbox
    110114  Vector traceMaxs; //!< Maxs of current bbox
     
    122126  Vector out1; //!< For debugging only
    123127  Vector out2; //!< For debugging only
    124                        
     128
    125129  int tgl;
    126130};
Note: See TracChangeset for help on using the changeset viewer.