Changeset 6732 for code/trunk/src/modules/weapons/weaponmodes/FusionFire.cc
- Timestamp:
- Apr 15, 2010, 3:35:31 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/weapons/weaponmodes/FusionFire.cc
r5781 r6732 36 36 #include "weaponsystem/WeaponPack.h" 37 37 #include "weaponsystem/WeaponSystem.h" 38 #include "worldentities/pawns/Pawn.h" 38 39 39 40 namespace orxonox … … 59 60 projectile->setOrientation(this->getMuzzleOrientation()); 60 61 projectile->setPosition(this->getMuzzlePosition()); 61 projectile->setVelocity(this->get MuzzleDirection() * this->speed_);62 projectile->setVelocity(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getVelocity() + this->getMuzzleDirection() * this->speed_); 62 63 projectile->scale(5); 63 64
Note: See TracChangeset
for help on using the changeset viewer.