Changeset 8337 in orxonox.OLD for branches/bsp_model/src/lib/collision_reaction
- Timestamp:
- Jun 13, 2006, 2:21:04 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/collision_handle.cc
r8336 r8337 196 196 { 197 197 this->collisionReaction->update(this->owner); 198 if( this->collisionList.size() > 0) PRINTF(0)("collision list: %i\n", this->collisionList.size());199 198 return; 200 199 } -
branches/bsp_model/src/lib/collision_reaction/cr_physics_ground_walk.cc
r8336 r8337 64 64 65 65 collision->getEntityB()->setVelocity(Vector()); 66 collision->getEntityB()->setAbsCoor(this->lastPositions[ 9]);66 collision->getEntityB()->setAbsCoor(this->lastPositions[6]); 67 67 } 68 68 … … 74 74 void CRPhysicsGroundWalk::update(WorldEntity* owner) 75 75 { 76 // this->afterLastPosition = this->lastPosition; 77 // this->lastPosition = owner->getAbsCoor(); 78 79 for( int i = 9; i > 0; i--) 76 for( int i = 9; i > 0; i--) { 80 77 this->lastPositions[i] = this->lastPositions[i-1]; 78 // PRINTF(0)("lastPosition[%i]: %f, %f, %f\n", i, lastPositions[i].x, lastPositions[i].y, lastPositions[i].z); 79 } 81 80 this->lastPositions[0] = owner->getAbsCoor(); 82 83 84 this->lastDirection = owner->getAbsDir();85 // this->lastPosition.debug();86 81 } 87 82
Note: See TracChangeset
for help on using the changeset viewer.