Changeset 6055 for code/branches/steering/src/modules/weapons/weaponmodes
- Timestamp:
- Nov 13, 2009, 11:21:40 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/steering/src/modules/weapons/weaponmodes/HsW01.cc
r6045 r6055 111 111 model->setScale(5); 112 112 113 //projectile->setOrientation(this->getMuzzleOrientation());114 projectile-> lookAt(this->getTarget(), WorldEntity::World);113 this->computeMuzzleParameters(); 114 projectile->setOrientation(this->getMuzzleOrientation()); 115 115 projectile->setPosition(this->getMuzzlePosition()); 116 projectile->setVelocity((projectile->getOrientation() * Vector3::UNIT_Z) * this->speed_); //getWorldOrientation?? 117 //projectile->setVelocity(this->getMuzzleDirection() * this->speed_); 116 projectile->setVelocity(this->getMuzzleDirection() * this->speed_); 118 117 119 118 projectile->setOwner(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn());
Note: See TracChangeset
for help on using the changeset viewer.