Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Mar 30, 2005, 9:37:52 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: projectile speed issue: fixed some strange behaveour. still got the problem, that the the projectile have variable relative speeds to the player…

File:
1 edited

Legend:

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

    r3677 r3683  
    4141TestGun::TestGun (PNode* parent, Vector* coordinate, Quaternion* direction)
    4242  :  Weapon (parent, coordinate, direction)
    43 {}
     43{
     44}
    4445
    4546
     
    8384{
    8485  //printf("TestGun::fire() - firing weapon now ---------------------------\n");
    85   Projectile* pj = new Projectile();
     86  Projectile* pj = new Projectile(this);
    8687
    8788  Vector* v = new Vector();
     
    9394
    9495  pj->setFlightDirection(q);
    95   //pj->setSpeed(this->getSpeed() * 0.025);
     96  pj->setSpeed(this->getSpeed());
    9697
    9798
Note: See TracChangeset for help on using the changeset viewer.