Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Mar 31, 2005, 1:22:42 AM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: fixed the speed issue once for all times now. great coding session with bensch, who finaly found the misstake i have made. now i changed the speed of the projectiles to a relative offset

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

Legend:

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

    r3688 r3689  
    9999void Projectile::tick (float time)
    100100{
    101   this->speed = this->weapon->getSpeed() + 100.0;
     101  this->speed = this->weapon->getSpeed();
    102102  Vector v;
    103   v = *this->flightDirection * this->speed * time;
     103  v = *this->flightDirection * ( this->speed * time * 1000 + 0.7);
    104104  this->shiftCoor(v);
    105105  //printf("PROJECTILE: current direction is:    (%f, %f, %f)\n",this->flightDirection->x, this->flightDirection->y, this->flightDirection->z );
  • orxonox/trunk/src/world_entities/test_gun.cc

    r3688 r3689  
    9696  pj->setAbsDir(q);
    9797
    98   //printf("%f\n",this->getSpeed());
     98  printf("%f\n",this->getSpeed());
    9999
    100100  pj->setFlightDirection(q);
Note: See TracChangeset for help on using the changeset viewer.