Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 1, 2010, 6:15:40 PM (15 years ago)
Author:
gnadler
Message:

tried to fix ~RocketController() as well as that the rocket is not visible, but failed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/rocket/src/modules/weapons/weaponmodes/SimpleRocketFire.cc

    r6813 r6814  
    6565
    6666
    67       /*  this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition());
    68         rocket->setOrientation(this->getMuzzleOrientation());
    69         rocket->setPosition(this->getMuzzlePosition());
    70         rocket->setVelocity(this->getMuzzleDirection() * this->speed_);
     67        this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition());
     68        con->getControllableEntity()->setOrientation(this->getMuzzleOrientation());
     69        con->getControllableEntity()->setPosition(this->getMuzzlePosition());
     70        /* rocket->setVelocity(this->getMuzzleDirection() * this->speed_);
    7171        rocket->scale(2);
    7272
Note: See TracChangeset for help on using the changeset viewer.