Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 27, 2006, 4:39:15 PM (19 years ago)
Author:
patrick
Message:

collision reaction rebwork

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/single_player_map/src/lib/collision_reaction/cr_physics_ground_walk.cc

    r8829 r8834  
    6969  AABB* box = collision->getEntityB()->getModelAABB();
    7070
     71  if( box != NULL)
     72  {
    7173
     74    Vector collPos =  collision->getEntityB()->getAbsCoor()  + box->center - ce->getCollisionPosition();
     75    PRINTF(0)("height: %f          , model height: %f\n", collPos.y, box->halfLength[1]);
     76
     77  }
     78
     79#if 0
    7280  if( box != NULL)
    7381    height = ( ce->getCollisionPosition() - collision->getEntityB()->getAbsCoor() )*(-1.0f) ;
     
    126134
    127135  }// if(box!= NULL)
    128 
     136#endif
    129137  /*
    130138  PRINTF(0)("Collision with Ground: \n");
Note: See TracChangeset for help on using the changeset viewer.