Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 31, 2005, 12:28:28 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: fixed speed issue, was a problem with the current track defined in the debug level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/projectile.cc

    r3685 r3686  
    9999void Projectile::tick (float time)
    100100{
    101   this->speed = this->weapon->getSpeed() * 3; 
    102   this->shiftCoor(*this->flightDirection * this->speed * time);
    103   //printf("current speed is: %f\n", this->speed);
     101  this->speed = this->weapon->getSpeed() * 3;
     102  Vector v;
     103  v = *this->flightDirection * this->speed * time;
     104  this->shiftCoor(v);
     105  //printf("PROJECTILE: current direction is:    (%f, %f, %f)\n",this->flightDirection->x, this->flightDirection->y, this->flightDirection->z );
     106  //printf("PROJECTILE: current shift vector is: (%f, %f, %f)\n", v.x, v.y, v.z);
     107  //printf("PROJECTILE: current speed is: %f\n", this->speed);
     108  //printf("PROJECTILE: current dt is:    %f\n", time);
     109  //this->debug();
    104110
    105111  this->currentLifeTime += time;
     
    110116      PRINTF(5)("FINALIZE=============================================================\n");
    111117      this->finalize();
     118      this->currentLifeTime = 0.0f;
    112119    }
    113120}
Note: See TracChangeset for help on using the changeset viewer.