Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 21, 2010, 9:40:14 AM (14 years ago)
Author:
scheusso
Message:

steering of the rocket now working, but oscilating
control parameters need adjustment

File:
1 edited

Legend:

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

    r6943 r6950  
    4949        this->bParallelReload_ = false;
    5050        this->damage_ = 100;
    51         this->speed_ = 1;
     51        this->speed_ = 100;
    5252
    5353        this->setMunitionName("LaserMunition");
     
    6464                SimpleRocket* rocket = con->getRocket();
    6565                this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition());
    66                 rocket->setOrientation(this->getMuzzleOrientation());
    67                 Vector3 pos = this->getMuzzlePosition() + (this->getMuzzleOrientation()* Vector3(-2, -3, -2));
     66//              rocket->setOrientation(this->getMuzzleOrientation());
     67        rocket->setOrientation(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getWorldOrientation());
     68                Vector3 pos = this->getMuzzlePosition();
    6869        rocket->setPosition(pos);
    69                 rocket->setAcceleration(20*rocket->getOrientation() * WorldEntity::FRONT);
     70//              rocket->setAcceleration(20*rocket->getOrientation() * WorldEntity::FRONT);
    7071                rocket->setVelocity(this->getMuzzleDirection()*this->speed_);
    7172                rocket->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn());
Note: See TracChangeset for help on using the changeset viewer.