Changeset 10271 in orxonox.OLD for branches/playability/src/world_entities/weapons/spike_launcher.cc
- Timestamp:
- Jan 17, 2007, 6:15:21 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/weapons/spike_launcher.cc
r10224 r10271 239 239 void SpikeLauncher::fire() 240 240 { 241 // temporary solution to test the module242 241 updateFireDir(VECTOR_RAND(1), 20); 243 242 244 printf("firing spikes\n");245 243 Projectile* pj = NULL; 246 244 for (int i = 0; i < this->spikes; i++) … … 250 248 return; 251 249 252 // pj->setVelocity(this->getVelocity()+(this->getAbsDir().apply(Vector(1,0,0))*115.0 + VECTOR_RAND(10)));253 250 pj->setVelocity(this->launcher[i].getNormalized() * 300.0); 254 251 … … 257 254 Quaternion q; 258 255 pj->setRelDir(q.lookAt(Vector(), this->launcher[i], VECTOR_RAND(1))); 259 // pj->setRelDir(90, this->launcher[i].x, this->launcher[i].y, this->launcher[i].z); 260 261 /* pj->toList(this->getOMListNumber());*/ 256 262 257 pj->activate(); 263 258 }
Note: See TracChangeset
for help on using the changeset viewer.