- Timestamp:
- May 15, 2008, 7:59:37 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud3/src/orxonox/hud/RadarOverlayElement.h~
r1292 r1295 26 26 */ 27 27 28 /* local coordinate system of space ship:29 30 y31 + z32 | +33 | /34 |/35 x +------O36 */37 38 28 #ifndef _RADAR_H__ 39 29 #define _RADAR_H__ … … 42 32 #include <OgreOverlayElement.h> 43 33 #include <OgrePanelOverlayElement.h> 44 34 #include <math.h> 35 #include <util/Math.h> 36 #include <string.h> 37 #include <Tickable.h> 45 38 #include <OgrePrerequisites.h> 46 39 #include "../OrxonoxPrereqs.h" … … 49 42 { 50 43 51 class _OrxonoxExport RadarOverlayElement : public Ogre::PanelOverlayElement 44 class _OrxonoxExport RadarOverlayElement : public Ogre::PanelOverlayElement, public Tickable 52 45 { 53 46 private: … … 55 48 PanelOverlayElement* point[100]; 56 49 57 int dirX_, dirY_, dirZ_; //flying direction 58 int ortX_, ortY_, ortZ_; //orthogonal direction 59 int dX_, dY_, dZ_; //distance between main ship and the object 60 int vecX_, vecY_, vecZ_; //vector product dir X ort 50 Vector3 initialDir; //initial direction 51 int dirX_, dirY_, dirZ_; //flying direction 52 int ortX_, ortY_, ortZ_; //orthogonal direction 53 int dX_, dY_, dZ_; //distance between main ship and the object 54 int vecX_, vecY_, vecZ_; //vector product dir X ort 61 55 double alpha_; //defines the radius in the radar 62 56 double beta_; //defines the angle in the radar 63 57 bool right_; //checks whether the object is on the right side (since cos is not bijective) 64 58 65 //static int ID = 0;59 // static int ID = 0; 66 60 67 61 public: … … 73 67 void initRadarOverlayElement(Real left, Real top, int dim, Ogre::OverlayContainer* container); 74 68 void setMainShipPosition(int dirX, int dirY, int dirZ, int ortX, int ortY, int ortZ); 75 69 void tick(float dt); 76 70 int newShip(int X, int Y, int Z); 77 71
Note: See TracChangeset
for help on using the changeset viewer.