Changeset 8336 in orxonox.OLD for branches/bsp_model/src/lib
- Timestamp:
- Jun 13, 2006, 12:34:33 AM (18 years ago)
- Location:
- branches/bsp_model/src/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/collision_reaction/collision_handle.cc
r8323 r8336 196 196 { 197 197 this->collisionReaction->update(this->owner); 198 if( this->collisionList.size() > 0) PRINTF(0)("collision list: %i\n", this->collisionList.size()); 198 199 return; 199 200 } -
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 -
branches/bsp_model/src/lib/collision_reaction/cr_physics_ground_walk.h
r8325 r8336 27 27 Vector afterLastPosition; //!< vector for the after last 28 28 Quaternion lastDirection; //!< quat with the last valid direction 29 30 Vector lastPositions[10]; //!< last 10 positions 29 31 }; 30 32 -
branches/bsp_model/src/lib/graphics/importer/bsp_manager.cc
r8334 r8336 911 911 if(this->outputAllSolid) 912 912 { 913 PRINTF(0)("this output all solid\n");914 913 this->collPlane = new plane; 915 914 this->collPlane->x = 1.0f;
Note: See TracChangeset
for help on using the changeset viewer.