- Timestamp:
- Nov 11, 2009, 5:39:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/steering/src/modules/weapons/weaponmodes/HsW01.cc
r5929 r6045 39 39 #include "weaponsystem/WeaponPack.h" 40 40 #include "weaponsystem/WeaponSystem.h" 41 #include "worldentities/WorldEntity.h" 41 42 42 43 namespace orxonox … … 110 111 model->setScale(5); 111 112 112 projectile->setOrientation(this->getMuzzleOrientation()); 113 //projectile->setOrientation(this->getMuzzleOrientation()); 114 projectile->lookAt(this->getTarget(), WorldEntity::World); 113 115 projectile->setPosition(this->getMuzzlePosition()); 114 projectile->setVelocity(this->getMuzzleDirection() * this->speed_); 116 projectile->setVelocity((projectile->getOrientation() * Vector3::UNIT_Z) * this->speed_); //getWorldOrientation?? 117 //projectile->setVelocity(this->getMuzzleDirection() * this->speed_); 115 118 116 119 projectile->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn());
Note: See TracChangeset
for help on using the changeset viewer.