Changeset 5440 in orxonox.OLD for trunk/src/world_entities/weapons/turret.cc
- Timestamp:
- Oct 27, 2005, 10:56:58 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/turret.cc
r5414 r5440 97 97 this->setEmissionPoint(1.684, 0.472, 0); 98 98 //this->getProjectileFactory()->prepare(100); 99 100 101 99 } 102 100 … … 140 138 if (target != NULL) 141 139 { 142 pj->setVelocity(this->getVelocity()+(this->getAbsDir().apply(Vector(1,0,0))*100.0 /*target->getAbsCoor() - this->getAbsCoor()*/)*.5);//this->getVelocity()); 140 pj->setVelocity(this->getVelocity()+(this->getAbsDir().apply(Vector(1,0,0))*100.0 + VECTOR_RAND(20) 141 /*target->getAbsCoor() - this->getAbsCoor()*/)*.5);//this->getVelocity()); 143 142 } 144 143 else … … 148 147 pj->setAbsCoor(this->getEmissionPoint()); 149 148 pj->setAbsDir(this->getAbsDir()); 149 150 150 State::getWorldEntityList()->add(pj); 151 151 } 152 153 152 154 153 void Turret::destroy ()
Note: See TracChangeset
for help on using the changeset viewer.