Changeset 10566 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Feb 4, 2007, 11:35:51 AM (18 years ago)
- Location:
- trunk/src/world_entities/creatures
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/creatures/fps_player.cc
r10563 r10566 103 103 104 104 this->fallVelocity = 0.0f; 105 this->jump Force= 0.0f;105 this->jumpAcceleration = 0.0f; 106 106 107 107 this->cameraNode.setParent(this); … … 352 352 if( this->bJump) 353 353 { 354 if( this->jump Force< 1.0f)354 if( this->jumpAcceleration < 1.0f) 355 355 { 356 this->jump Force= 300.0f;356 this->jumpAcceleration = 300.0f; 357 357 358 358 if( ((InteractiveModel*)this->getModel(0))->getAnimation() != JUMP) … … 373 373 374 374 375 velocity.y += this->jump Force;376 if( this->jump Force> 1.0f)377 this->jump Force*= 0.9f;375 velocity.y += this->jumpAcceleration; 376 if( this->jumpAcceleration > 1.0f) 377 this->jumpAcceleration *= 0.9f; 378 378 379 379 -
trunk/src/world_entities/creatures/fps_player.h
r9869 r10566 61 61 62 62 float fallVelocity; //!< velocity for falling down 63 float jump Force; //!< the jump force63 float jumpAcceleration; //!< the jump acceleration 64 64 65 65 bool initWeapon;
Note: See TracChangeset
for help on using the changeset viewer.