Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 15, 2010, 3:35:31 PM (14 years ago)
Author:
scheusso
Message:

correcting initial speed of projectiles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/weapons/weaponmodes/FusionFire.cc

    r5781 r6732  
    3636#include "weaponsystem/WeaponPack.h"
    3737#include "weaponsystem/WeaponSystem.h"
     38#include "worldentities/pawns/Pawn.h"
    3839
    3940namespace orxonox
     
    5960        projectile->setOrientation(this->getMuzzleOrientation());
    6061        projectile->setPosition(this->getMuzzlePosition());
    61         projectile->setVelocity(this->getMuzzleDirection() * this->speed_);
     62        projectile->setVelocity(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getVelocity() + this->getMuzzleDirection() * this->speed_);
    6263        projectile->scale(5);
    6364
Note: See TracChangeset for help on using the changeset viewer.