Changeset 5443 in orxonox.OLD for trunk/src/world_entities/weapons/turret.cc
- Timestamp:
- Oct 28, 2005, 9:44:57 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/turret.cc
r5441 r5443 138 138 if (target != NULL) 139 139 { 140 pj->setVelocity(this->getVelocity()+(this->getAbsDir().apply(Vector(1,0,0))*100.0 + VECTOR_RAND( 20)140 pj->setVelocity(this->getVelocity()+(this->getAbsDir().apply(Vector(1,0,0))*100.0 + VECTOR_RAND(13) 141 141 /*target->getAbsCoor() - this->getAbsCoor()*/)*.5);//this->getVelocity()); 142 142 } … … 147 147 pj->setAbsCoor(this->getEmissionPoint()); 148 148 pj->setAbsDir(this->getAbsDir()); 149 150 State::getWorldEntityList()->add(pj); 149 pj->activate(); 151 150 } 152 151
Note: See TracChangeset
for help on using the changeset viewer.