Changeset 10618 in orxonox.OLD for trunk/src/world_entities/creatures/fps_player.cc
- Timestamp:
- Apr 4, 2007, 12:13:53 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 16 16 OrxonoxPlayability.kdevses 17 17 OrxonoxPlayability.kdevelop.pcs 18 orxonox.backtrace 19 orxonox.kdevses 20 orxonox.kdevelop.pcs
-
- Property svn:ignore
-
trunk/src/world_entities/creatures/fps_player.cc
r10567 r10618 32 32 33 33 #include "aabb.h" 34 #include " bsp_entity.h"34 #include "environments/bsp_entity.h" 35 35 36 36 #include "key_mapper.h" … … 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.