Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 28, 2006, 11:43:26 PM (19 years ago)
Author:
nicolasc
Message:

added dummy guiding/homing function for missile

File:
1 edited

Legend:

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

    r9960 r9964  
    6464  protected:
    6565    // energy
    66     float                  energyMin;                 //!< The minimal Energy a Projectile needs to be emitted.
    67     bool                   bChargeable;               //!< if the Projectile is Charegeable
     66    float                   energyMin;                //!< The minimal Energy a Projectile needs to be emitted.
     67    bool                    bChargeable;              //!< if the Projectile is Charegeable
    6868
    69     float                  lifeCycle;                 //!< The percentage of the Lifetime done [0-1]
    70     float                  lifeSpan;                  //!< The entire lifespan of the Shoot. in seconds
     69    float                   lifeCycle;                //!< The percentage of the Lifetime done [0-1]
     70    float                   lifeSpan;                 //!< The entire lifespan of the Shoot. in seconds
    7171
    7272    float                   physDamage;               //!< damage to shield and armor
    7373    float                   elecDamage;               //!< damage to elctronic
     74    float                   turningSpeed;             //!< degrees per tick
    7475
    75     Vector                 flightDirection;           //!< DOF direction in which the shoot flighs
     76    Vector                  flightDirection;          //!< DOF direction in which the shoot flighs
    7677
    77     Vector                 velocity;                  //!< velocity of the projectile.
     78    Vector                  velocity;                 //!< velocity of the projectile.
    7879
    79     PNode*                 target;                    //!< A target for guided Weapons.
     80    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!
    8084
    8185    OrxSound::SoundSource  soundSource;
     
    8387    OrxSound::SoundBuffer  explosionBuffer;
    8488    OrxSound::SoundBuffer  engineBuffer;
     89
     90    virtual Vector newDirection(Vector curDirection, Vector estTargetDir, float angle);
    8591};
    8692
Note: See TracChangeset for help on using the changeset viewer.