Changeset 6153
- Timestamp:
- Nov 25, 2009, 6:04:10 PM (15 years ago)
- Location:
- code/branches/presentation2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/data/gui/scripts/InitialiseGUI.lua
r6150 r6153 187 187 local child 188 188 while root:getChildCount()~=0 do 189 debug(root:getChildCount())190 189 child = root:getChildAtIdx(0) 191 190 root:removeChildWindow(child) -
code/branches/presentation2/src/modules/weapons/weaponmodes/LightningGun.cc
r5781 r6153 59 59 projectile->setMaterial("Flares/LightningBall_"); 60 60 61 this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition()); 61 62 projectile->setOrientation(this->getMuzzleOrientation()); 62 63 projectile->setPosition(this->getMuzzlePosition()); -
code/branches/presentation2/src/modules/weapons/weaponmodes/RocketFire.cc
r6107 r6153 36 36 #include "weaponsystem/WeaponPack.h" 37 37 #include "weaponsystem/WeaponSystem.h" 38 #include "worldentities/pawns/Pawn.h" 38 39 39 40 namespace orxonox … … 57 58 Rocket* rocket = new Rocket(this); 58 59 60 this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition()); 59 61 rocket->setOrientation(this->getMuzzleOrientation()); 60 62 rocket->setPosition(this->getMuzzlePosition()); -
code/branches/presentation2/src/orxonox/weaponsystem/WeaponMode.cc
r6152 r6153 205 205 this->muzzlePosition_ = this->weapon_->getWorldPosition() + this->weapon_->getWorldOrientation() * this->muzzleOffset_; 206 206 207 Pawn* pawn = this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn();208 207 Vector3 muzzleDirection; 209 208 muzzleDirection = target - this->muzzlePosition_;
Note: See TracChangeset
for help on using the changeset viewer.