Changeset 10599 in orxonox.OLD for branches/cleanup/src/world_entities/creatures
- Timestamp:
- Feb 24, 2007, 12:25:48 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cleanup/src/world_entities/creatures/fps_player.cc
r10591 r10599 381 381 if( !this->isOnGround()) 382 382 { 383 this->fallVelocity += 300.0f * time;383 if(this->fallVelocity + 300.0F*time < 10000.0f)this->fallVelocity += 300.0f * time; 384 384 velocity -= Vector(0.0, 1.0, 0.0) * this->fallVelocity; 385 385 … … 390 390 this->fallVelocity = 0.0f; 391 391 } 392 393 this->shiftCoor( velocity*time ); 394 395 392 if((velocity *time).len() < 10.0f) this->shiftCoor( velocity*time ); 393 else{ 394 velocity.normalize(); 395 velocity *= 10.0f; 396 this->shiftCoor( velocity ); 397 } 396 398 397 399
Note: See TracChangeset
for help on using the changeset viewer.