Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Mar 22, 2005, 12:10:09 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: gun can be fired, projectil do not move jet

File:
1 edited

Legend:

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

    r3629 r3631  
    1414   main-programmer: Patrick Boenzli
    1515   co-programmer:
     16
     17
     18   \todo: direction in which the projectile flights
     19   \todo: a target to set/hit
    1620*/
    1721
     
    3539   creates a new weapon
    3640*/
    37 TestGun::TestGun () : Weapon()
     41TestGun::TestGun (PNode* parent, Vector* coordinate, Quaternion* direction)
     42  :  Weapon (parent, coordinate, direction)
    3843{}
    3944
     
    7883{
    7984  printf("TestGun::fire() - firing weapon now ---------------------------\n");
    80   //WorldEntity* pj = new Projectile();
    81   //this->worldEntities->add(pj);
     85  WorldEntity* pj = new Projectile();
     86  pj->setAbsCoor( &this->getAbsCoor());
     87  pj->setAbsDir( &this->getAbsDir());
     88  this->worldEntities->add(pj);
    8289}
    8390
Note: See TracChangeset for help on using the changeset viewer.