Changeset 5745 in orxonox.OLD for branches/world_entities/src/world_entities/weapons/aiming_turret.cc
- Timestamp:
- Nov 23, 2005, 9:41:24 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/world_entities/src/world_entities/weapons/aiming_turret.cc
r5622 r5745 40 40 creates a new weapon 41 41 */ 42 AimingTurret::AimingTurret ( WeaponManager* weaponManager)43 : Weapon( weaponManager)42 AimingTurret::AimingTurret () 43 : Weapon() 44 44 { 45 45 this->init(); … … 143 143 return; 144 144 145 PNode* target = this->getWeaponManager()->getFixedTarget();146 147 if (target != NULL)148 {149 145 pj->setVelocity(/*this->getVelocity()+*/(this->getAbsDir().apply(Vector(1,0,0))*250.0 + VECTOR_RAND(13) 150 146 /*target->getAbsCoor() - this->getAbsCoor()*/)*.5);//this->getVelocity()); 151 }152 else153 pj->setVelocity(target->getVelocity());154 147 155 148 pj->setParent(NullParent::getInstance()); … … 168 161 void AimingTurret::draw () const 169 162 { 170 this->getWeaponManager()->getFixedTarget()->debugDraw(10);171 172 163 /* draw gun body */ 173 164 glMatrixMode(GL_MODELVIEW);
Note: See TracChangeset
for help on using the changeset viewer.