Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8325 in orxonox.OLD for branches/bsp_model/src/lib


Ignore:
Timestamp:
Jun 12, 2006, 12:49:46 AM (18 years ago)
Author:
patrick
Message:

bspmodel: finished work for tonight. switching to sleep state

Location:
branches/bsp_model/src/lib/collision_reaction
Files:
2 edited

Legend:

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

    r8323 r8325  
    6565    PRINTF(0)("putting it back to: \n");
    6666    this->lastPosition.debug();
     67    this->afterLastPosition.debug();
    6768
    6869    collision->getEntityB()->setVelocity(Vector());
    69 //  collision->getEntityB()->setAbsCoorSoft(this->lastPosition, 0.1);
    70     collision->getEntityB()->setAbsCoor(this->lastPosition);
     70    collision->getEntityB()->setAbsCoor(this->afterLastPosition);
    7171  }
    7272}
     
    7979void CRPhysicsGroundWalk::update(WorldEntity* owner)
    8080{
     81  this->afterLastPosition = this->lastPosition;
    8182  this->lastPosition = owner->getAbsCoor();
     83
    8284  this->lastDirection = owner->getAbsDir();
    8385  PRINTF(0)("no collision: saving location: \n");
  • branches/bsp_model/src/lib/collision_reaction/cr_physics_ground_walk.h

    r8256 r8325  
    2525  private:
    2626    Vector       lastPosition;                //!< vector with the last valid position
     27    Vector       afterLastPosition;           //!< vector for the after last
    2728    Quaternion   lastDirection;               //!< quat with the last valid direction
    2829};
Note: See TracChangeset for help on using the changeset viewer.