Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 15, 2008, 3:49:49 PM (17 years ago)
Author:
chaiy
Message:

radar works well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hud3/src/orxonox/hud/RadarOverlayElement.h

    r1283 r1286  
    4343  {
    4444  private:
    45     int number_;
    46 
     45   
     46    PanelOverlayElement* point[100];
     47   
     48    int dirX_, dirY_, dirZ_;      //flying direction
     49    int ortX_, ortY_, ortZ_;      //orthogonal direction
     50    int dX_, dY_, dZ_;            //distance between main ship and the object
     51    int vecX_, vecY_, vecZ_;      //vector product dir X ort
     52    double alpha_;              //defines the radius in the radar
     53    double beta_;               //defines the angle in the radar
     54    bool right_;                //checks whether the object is on the right side (since cos is not bijective)
     55   
     56    static int ID = 0;
    4757
    4858  public:
     
    5363
    5464    void initRadarOverlayElement(Real left, Real top, int dim, Ogre::OverlayContainer* container);
     65    void setMainShipPosition(int dirX, dirY, dirZ, ortX, ortY, ortZ);
     66   
     67    int newShip(int X, int Y, int Z);
     68   
     69    void resetShip(int shipID, int Y, int Z);
    5570  };
    5671}       
Note: See TracChangeset for help on using the changeset viewer.