Changeset 8336 in orxonox.OLD for branches/bsp_model/src/lib/collision_reaction/cr_physics_ground_walk.cc
- Timestamp:
- Jun 13, 2006, 12:34:33 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/collision_reaction/cr_physics_ground_walk.cc
r8334 r8336 58 58 59 59 // put it back 60 PRINTF(0)("putting it back to lastPos: \n");61 this->lastPosition.debug();62 PRINTF(0)("current pos:\n");63 collision->getEntityB()->getAbsCoor().debug();60 // PRINTF(0)("putting it back to lastPos: \n"); 61 // this->lastPositions[0].debug(); 62 // PRINTF(0)("current pos:\n"); 63 // collision->getEntityB()->getAbsCoor().debug(); 64 64 65 65 collision->getEntityB()->setVelocity(Vector()); 66 collision->getEntityB()->setAbsCoor(this->lastPosition );66 collision->getEntityB()->setAbsCoor(this->lastPositions[9]); 67 67 } 68 68 … … 74 74 void CRPhysicsGroundWalk::update(WorldEntity* owner) 75 75 { 76 this->afterLastPosition = this->lastPosition; 77 this->lastPosition = owner->getAbsCoor(); 76 // this->afterLastPosition = this->lastPosition; 77 // this->lastPosition = owner->getAbsCoor(); 78 79 for( int i = 9; i > 0; i--) 80 this->lastPositions[i] = this->lastPositions[i-1]; 81 this->lastPositions[0] = owner->getAbsCoor(); 82 78 83 79 84 this->lastDirection = owner->getAbsDir(); 80 PRINTF(0)("no collision: saving location: \n"); 81 this->lastPosition.debug(); 85 // this->lastPosition.debug(); 82 86 } 83 87
Note: See TracChangeset
for help on using the changeset viewer.