Changeset 8325 in orxonox.OLD for branches/bsp_model/src
- Timestamp:
- Jun 12, 2006, 12:49:46 AM (18 years ago)
- 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 65 65 PRINTF(0)("putting it back to: \n"); 66 66 this->lastPosition.debug(); 67 this->afterLastPosition.debug(); 67 68 68 69 collision->getEntityB()->setVelocity(Vector()); 69 // collision->getEntityB()->setAbsCoorSoft(this->lastPosition, 0.1); 70 collision->getEntityB()->setAbsCoor(this->lastPosition); 70 collision->getEntityB()->setAbsCoor(this->afterLastPosition); 71 71 } 72 72 } … … 79 79 void CRPhysicsGroundWalk::update(WorldEntity* owner) 80 80 { 81 this->afterLastPosition = this->lastPosition; 81 82 this->lastPosition = owner->getAbsCoor(); 83 82 84 this->lastDirection = owner->getAbsDir(); 83 85 PRINTF(0)("no collision: saving location: \n"); -
branches/bsp_model/src/lib/collision_reaction/cr_physics_ground_walk.h
r8256 r8325 25 25 private: 26 26 Vector lastPosition; //!< vector with the last valid position 27 Vector afterLastPosition; //!< vector for the after last 27 28 Quaternion lastDirection; //!< quat with the last valid direction 28 29 };
Note: See TracChangeset
for help on using the changeset viewer.