1 // FGAIBallistic - AIBase derived class creates an AI ballistic object
3 // Written by David Culp, started November 2003.
4 // - davidculp2@comcast.net
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License as
8 // published by the Free Software Foundation; either version 2 of the
9 // License, or (at your option) any later version.
11 // This program is distributed in the hope that it will be useful, but
12 // WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #ifndef _FG_AIBALLISTIC_HXX
21 #define _FG_AIBALLISTIC_HXX
23 #include "AIManager.hxx"
27 class FGAIBallistic : public FGAIBase {
31 FGAIBallistic(FGAIManager* mgr);
36 virtual void unbind();
37 void update(double dt);
39 void setAzimuth( double az );
40 void setElevation( double el );
41 void setRoll( double rl );
42 void setStabilization( bool val );
43 void setDragArea( double a );
44 void setLife( double seconds );
45 void setBuoyancy( double fpss );
46 void setWind_from_east( double fps );
47 void setWind_from_north( double fps );
48 void setWind( bool val );
50 double _getTime() const;
54 double azimuth; // degrees true
55 double elevation; // degrees
56 double rotation; // degrees
57 double hs; // horizontal speed (fps)
58 bool aero_stabilized; // if true, object will point where it's going
59 double drag_area; // equivalent drag area in ft2
60 double life_timer; // seconds
61 double gravity; // fps2
62 double buoyancy; // fps2
63 double wind_from_east; // fps
64 double wind_from_north; // fps
65 bool wind; // if true, local wind will be applied to object
70 #endif // _FG_AIBALLISTIC_HXX