Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 5, 2007, 2:48:15 PM (17 years ago)
Author:
nicolasc
Message:

moved "ship attributes" to world entity
electronic and shield widget not yet working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/vs-enhencements/src/world_entities/projectiles/swarm_projectile.cc

    r10649 r10670  
    204204/** old  guiding function*/
    205205
    206   float projectileVelocity = this->getVelocity().len();
     206  static float projectileVelocity = this->getVelocity().len();
    207207  if (target != NULL){
    208     Vector estTargetDir = (this->target->getAbsCoor() - this->getAbsCoor()).getNormalized();
     208    static Vector estTargetDir = (this->target->getAbsCoor() - this->getAbsCoor()).getNormalized();
    209209    this->velocity = this->newDirection(this->velocity, estTargetDir, this->turningSpeed * time );
    210210  }
Note: See TracChangeset for help on using the changeset viewer.