Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3708 in orxonox.OLD for orxonox/trunk/src/world_entities/test_gun.cc


Ignore:
Timestamp:
Apr 1, 2005, 1:41:38 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: added testbullet class. some changes in the weapon class to make it look much better and also more performant

File:
1 edited

Legend:

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

    r3689 r3708  
    8585{
    8686  if( this->localTime < this->idleTime)
    87     return;
    88 
     87    {
     88      this->weaponIdle();
     89      return;
     90    }
    8991  Projectile* pj = new Projectile(this);
    9092
    91   Vector* v = new Vector();
    92   *v = this->getAbsCoor();
    93   pj->setAbsCoor(v);
    94   Quaternion* q = new Quaternion();
    95   *q = this->getAbsDir();
    96   pj->setAbsDir(q);
     93  pj->setAbsCoor(this->getAbsCoor());
     94  pj->setAbsDir(this->getAbsDir());
    9795
    98   printf("%f\n",this->getSpeed());
    99 
    100   pj->setFlightDirection(q);
     96  pj->setFlightDirection(this->getAbsDir());
    10197  pj->setSpeed(this->getSpeed());
    10298
Note: See TracChangeset for help on using the changeset viewer.