Aircraft classes.
More...
#include "base/module.hh"
#include "math/module.hh"
#include "math/funcs_trig.hh"
#include "math/funcs_vector.hh"
#include "gfx/module.hh"
#include "graph/module.hh"
#include "graph/subgraph.hh"
#include "graph/shadow_scene_graph.hh"
#include "object/module.hh"
#include "object/aircraft.hh"
#include "control/module.hh"
#include "control/defs_axis.hh"
#include "physics/module.hh"
#include "program/module.hh"
#include "program/aircraft_models.hh"
Detailed Description
Aircraft classes.
- LastChangedDate:
- 2010-06-24 10:22:48 -0400 (Thu, 24 Jun 2010)
- Author:
- Jim E. Brooks http://www.palomino3d.org
Define Documentation
| #define CODE_CLASS_GET_SPECS |
( |
|
CONF_FILENAME |
) |
|
Value:{ \
\
PERSISTENT AircraftSpecs sAircraftSpecs; \
BEGIN_ONCE { \
sAircraftSpecs.ReadSpecsFromConfFile( CONF_FILENAME ); \
} END_ONCE \
return sAircraftSpecs; \
}
| #define F14_PUSH_GEAR_SUBGRAPH |
( |
|
NUM |
) |
mGearSubgraphs.push_back( mSubgraphGear##NUM ); |
| #define F14_PUSH_WING_SUBGRAPH |
( |
|
NUM |
) |
|
Value:mLeftWingSubgraphs.push_back( mSubgraphWingLeft##NUM ); \
mRightWingSubgraphs.push_back( mSubgraphWingRight##NUM );
| #define F14_ROTATE_AILERONS |
( |
|
SUBGRAPH, |
|
|
|
CONTROL_FRACTION, |
|
|
|
AILERON | |
|
) |
| | |
Value:{{ \
(SUBGRAPH).Translate( specs.mAileronOffset ); \
(SUBGRAPH).Rotate( MODEL_AXIS_PITCH, \
specs.mAileronROF * (CONTROL_FRACTION) * int(AILERON) ); \
(SUBGRAPH).Translate( -specs.mAileronOffset ); \
}}
| #define MAKE_AIRCRAFT |
( |
|
CLASS |
) |
|
Value:{ \
graph = Aircraft::LoadModel( CLASS::ClassGetSpecs(), loadCopy ).PTR(); \
aircraft = new CLASS( graph.PTR(), pos ); \
}
| #define PROGRAM_AIRCRAFT_CC 1 |