Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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)

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.