#include <simgear/misc/ResourceManager.hxx>
#include <simgear/props/propertyObject.hxx>
#include <simgear/props/props_io.hxx>
+#include <simgear/scene/model/placement.hxx>
#include <Aircraft/controls.hxx>
#include <Airports/runways.hxx>
return event_mgr;
}
+const SGGeod &
+FGGlobals::get_aircraft_position() const
+{
+ if( acmodel != NULL ) {
+ SGModelPlacement * mp = acmodel->get3DModel();
+ if( mp != NULL )
+ return mp->getPosition();
+ }
+ throw sg_exception("Can't get aircraft position", "FGGlobals::get_aircraft_position()" );
+}
+
+
// Save the current state as the initial state.
void
acmodel = model;
}
+ const SGGeod & get_aircraft_position() const;
+
inline FGModelMgr *get_model_mgr () { return model_mgr; }
inline void set_model_mgr (FGModelMgr * mgr)