Changeset 8940 in orxonox.OLD for branches/single_player_map/src/world_entities
- Timestamp:
- Jun 30, 2006, 2:44:43 AM (19 years ago)
- Location:
- branches/single_player_map/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/world_entities/creatures/fps_player.cc
r8939 r8940 252 252 } 253 253 254 255 velocity *= 100; 256 257 254 258 // physical falling of the player 255 256 257 // this->fallVelocity += 10.0f * time + this->fallVelocity; 258 259 260 velocity *= 100; 259 if( !this->isOnGround()) 260 { 261 this->fallVelocity += 10.0f * time; 262 velocity -= Vector(0.0, 1.0, 0.0) * this->fallVelocity; 263 } 264 else 265 { 266 this->fallVelocity = 0.0f; 267 } 268 261 269 262 270 this->shiftCoor( velocity*time ); -
branches/single_player_map/src/world_entities/world_entity.cc
r8898 r8940 82 82 this->collisionHandles[i] = NULL; 83 83 this->bReactive = false; 84 this->bOnGround = false; 84 85 85 86 // registering default reactions:
Note: See TracChangeset
for help on using the changeset viewer.