Changeset 6732 for code/trunk/src/modules/weapons/weaponmodes/LaserFire.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/LaserFire.cc
r5781 r6732 34 34 #include "weaponsystem/WeaponPack.h" 35 35 #include "weaponsystem/WeaponSystem.h" 36 #include "worldentities/pawns/Pawn.h" 36 37 37 38 namespace orxonox … … 56 57 projectile->setOrientation(this->getMuzzleOrientation()); 57 58 projectile->setPosition(this->getMuzzlePosition()); 58 projectile->setVelocity(this->get MuzzleDirection() * this->speed_);59 projectile->setVelocity(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getVelocity() + this->getMuzzleDirection() * this->speed_); 59 60 60 61 projectile->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn());
Note: See TracChangeset
for help on using the changeset viewer.