Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 29, 2006, 3:27:00 PM (17 years ago)
Author:
nicolasc
Message:

bump

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/projectiles/projectile.cc

    r9964 r9969  
    192192void Projectile::tick (float dt)
    193193{
    194   Vector estTargetDir = this->targetPosition + this->targetVelocity * this->eta;
    195   //Vector estTargetDir = (this->target.getRelCoor() + this->target.getVelocity()) / this->velocity.len() ;
     194  float tti;  //!< time to impact
     195  Vector estTargetDir = (this->target->getRelCoor() + this->target->getVelocity());
    196196  this->velocity = this->newDirection(this->velocity, estTargetDir, this->turningSpeed * dt ) * this->velocity.len();
    197197  Vector v = this->velocity * (dt);
Note: See TracChangeset for help on using the changeset viewer.