- Timestamp:
- Dec 3, 2013, 8:18:15 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/invaders/src/modules/invader/InvaderWeapon.cc
r9744 r9868 61 61 void InvaderWeapon::shot() 62 62 { 63 // orxout(internal_error) << "shotttttt" << endl;64 65 63 assert( this->getWeapon() && this->getWeapon()->getWeaponPack() && this->getWeapon()->getWeaponPack()->getWeaponSystem() && this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn() ); 66 64 … … 74 72 75 73 this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition()); 76 projectile->setOrientation(Quaternion(sqrt(0.5),0,sqrt(0.5),0)); //this->getMuzzleOrientation() Quaternion::IDENTITY 74 // only shoot in foreward direction 75 projectile->setOrientation(Quaternion(sqrt(0.5),0,sqrt(0.5),0)); 77 76 projectile->setPosition(this->getMuzzlePosition()); 78 projectile->setVelocity(Vector3(1, 0, 0) * 2000); //this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getVelocity() + this->getMuzzleDirection() * this->speed_ 77 // only shoot in foreward direction 78 projectile->setVelocity(Vector3(1, 0, 0) * 2000); 79 79 80 80 projectile->setShooter(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn());
Note: See TracChangeset
for help on using the changeset viewer.