Changeset 10670 in orxonox.OLD for branches/vs-enhencements/src/world_entities/projectiles
- Timestamp:
- Jun 5, 2007, 2:48:15 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/vs-enhencements/src/world_entities/projectiles/swarm_projectile.cc
r10649 r10670 204 204 /** old guiding function*/ 205 205 206 float projectileVelocity = this->getVelocity().len();206 static float projectileVelocity = this->getVelocity().len(); 207 207 if (target != NULL){ 208 Vector estTargetDir = (this->target->getAbsCoor() - this->getAbsCoor()).getNormalized();208 static Vector estTargetDir = (this->target->getAbsCoor() - this->getAbsCoor()).getNormalized(); 209 209 this->velocity = this->newDirection(this->velocity, estTargetDir, this->turningSpeed * time ); 210 210 }
Note: See TracChangeset
for help on using the changeset viewer.