Changeset 8862 in orxonox.OLD for branches/single_player_map
- Timestamp:
- Jun 28, 2006, 3:28:08 PM (19 years ago)
- Location:
- branches/single_player_map/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/lib/collision_reaction/collision_event.h
r8855 r8862 44 44 inline Vector getCollisionPosition() { return this->position; } 45 45 46 /** @return true if the entity is in the wall */ 47 inline bool isInWall() { return this->bInWall; } 48 46 49 47 50 private: -
branches/single_player_map/src/lib/collision_reaction/cr_physics_ground_walk.cc
r8852 r8862 71 71 72 72 float CR_MAX_WALK_HEIGHT = 2.0f; 73 float CR_THRESHOLD = 0.2f; 73 74 74 75 if( box != NULL) … … 82 83 83 84 // object is beneath the plane (ground) 84 if( height < 0.0f )85 if( height < 0.0f ) 85 86 { 86 entity->shiftCoor(Vector(0, -height,0));87 entity->shiftCoor(Vector(0, -height, 0)); 87 88 } 89 // object is already in the wall 90 else if( ce->isInWall()) 91 { 92 93 } 94 88 95 89 96 -
branches/single_player_map/src/world_entities/world_entity.h
r8861 r8862 116 116 ObjectManager::EntityList::iterator& getEntityIterator() { return this->objectListIterator; } 117 117 118 void hide() { this->lastObjectListNumber = this->objectListNumber; this->toList(OM_DEAD); }118 void hide() { if( this->objectListNumber != OM_DEAD) this->lastObjectListNumber = this->objectListNumber; this->toList(OM_DEAD); } 119 119 void unhide() { this->toList(this->lastObjectListNumber); } 120 120
Note: See TracChangeset
for help on using the changeset viewer.