Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9969 in orxonox.OLD


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

bump

Location:
branches/playability/src/world_entities
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/WorldEntities.am

    r9869 r9969  
    2222                world_entities/character_attributes.cc \
    2323                world_entities/test_entity.cc \
     24                world_entities/test_entity2.cc \
    2425                world_entities/planet.cc \
    2526                world_entities/bsp_entity.cc \
     
    125126                character_attributes.h \
    126127                test_entity.h \
     128                test_entity2.h \
    127129                planet.h \
    128130                bsp_entity.h \
  • 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);
  • branches/playability/src/world_entities/projectiles/projectile.h

    r9964 r9969  
    7979
    8080    PNode*                  target;                   //!< A target for guided Weapons.
    81     Vector                  targetPosition;           //!< current target position relative to projectile
    82     Vector                  targetVelocity;           //!< current target speed and direction
    83     float                   eta;                      //!< estimated time of arrival == time to kaboom!
     81    //Vector                  targetPosition;           //!< current target position relative to projectile
     82    //Vector                  targetVelocity;           //!< current target speed and direction
     83    //float                   eta;                      //!< estimated time of arrival == time to kaboom!
    8484
    8585    OrxSound::SoundSource  soundSource;
Note: See TracChangeset for help on using the changeset viewer.