Changeset 8337 in orxonox.OLD for branches/bsp_model
- Timestamp:
- Jun 13, 2006, 2:21:04 AM (18 years ago)
- Location:
- branches/bsp_model/src
- Files:
-
- 3 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 -
branches/bsp_model/src/story_entities/game_world.cc
r8220 r8337 279 279 /* process time */ 280 280 this->tick (); 281 281 282 /* collision detection */ 282 283 this->collisionDetection (); 283 284 /* collision reaction */ 284 285 this->collisionReaction (); 286 285 287 /* update the state */ 286 288 this->update (); 289 287 290 /* check the game rules */ 288 291 this->checkGameRules();
Note: See TracChangeset
for help on using the changeset viewer.