Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10566 in orxonox.OLD for trunk/src/world_entities


Ignore:
Timestamp:
Feb 4, 2007, 11:35:51 AM (18 years ago)
Author:
snellen
Message:

renamed jumpForce to jumpAcclereration (that is what tihs variable means physically)

Location:
trunk/src/world_entities/creatures
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/creatures/fps_player.cc

    r10563 r10566  
    103103
    104104  this->fallVelocity = 0.0f;
    105   this->jumpForce = 0.0f;
     105  this->jumpAcceleration = 0.0f;
    106106
    107107  this->cameraNode.setParent(this);
     
    352352    if( this->bJump)
    353353    {
    354       if( this->jumpForce < 1.0f)
     354      if( this->jumpAcceleration < 1.0f)
    355355      {
    356         this->jumpForce = 300.0f;
     356        this->jumpAcceleration = 300.0f;
    357357
    358358        if( ((InteractiveModel*)this->getModel(0))->getAnimation() != JUMP)
     
    373373
    374374
    375   velocity.y += this->jumpForce;
    376   if( this->jumpForce > 1.0f)
    377     this->jumpForce *= 0.9f;
     375  velocity.y += this->jumpAcceleration;
     376  if( this->jumpAcceleration > 1.0f)
     377    this->jumpAcceleration *= 0.9f;
    378378
    379379
  • trunk/src/world_entities/creatures/fps_player.h

    r9869 r10566  
    6161
    6262    float                 fallVelocity;        //!< velocity for falling down
    63     float                 jumpForce;           //!< the jump force
     63    float                 jumpAcceleration;    //!< the jump acceleration
    6464
    6565    bool                  initWeapon;
Note: See TracChangeset for help on using the changeset viewer.