-
- typedef struct {
- SGPropertyNode_ptr trigger;
- SGPropertyNode_ptr prop;
- SGPropertyNode_ptr contents_node;
-
- string name;
- string model;
- double speed;
- bool slaved;
- bool repeat;
- double delay;
- double timer;
- int count;
- double x_offset;
- double y_offset;
- double z_offset;
- double yaw_offset;
- double pitch_offset;
- double drag_area;
- double life;
- double buoyancy;
- bool wind;
- bool first_time;
- double cd;
- double weight;
- double contents;
- bool aero_stabilised;
- } submodel;
-
- typedef struct {
- double lat;
- double lon;
- double alt;
- double roll;
- double azimuth;
- double elevation;
- double speed;
- double wind_from_east;
- double wind_from_north;
- double speed_down_fps;
- double speed_east_fps;
- double speed_north_fps;
- double total_speed_down;
- double total_speed_east;
- double total_speed_north;
- double mass;
- } IC_struct;
-
- FGSubmodelMgr ();
- ~FGSubmodelMgr ();
-
- void load ();
- void init ();
- void bind ();
- void unbind ();
- void update (double dt);
- bool release (submodel* sm, double dt);
- void transform (submodel* sm);
- void updatelat( double lat );
+ typedef struct {
+ SGPropertyNode_ptr trigger_node;
+ SGPropertyNode_ptr prop;
+ SGPropertyNode_ptr contents_node;
+ SGPropertyNode_ptr submodel_node;
+ SGPropertyNode_ptr speed_node;
+
+ std::string name;
+ std::string model;
+ double speed;
+ bool slaved;
+ bool repeat;
+ double delay;
+ double timer;
+ int count;
+ double x_offset;
+ double y_offset;
+ double z_offset;
+ double yaw_offset;
+ double pitch_offset;
+ double drag_area;
+ double life;
+ double buoyancy;
+ double randomness;
+ bool wind;
+ bool first_time;
+ double cd;
+ double weight;
+ double mass;
+ double contents;
+ bool aero_stabilised;
+ int id;
+ bool no_roll;
+ bool serviceable;
+ bool random;
+ bool collision;
+ bool expiry;
+ bool impact;
+ std::string impact_report;
+ double fuse_range;
+ std::string submodel;
+ int sub_id;
+ bool force_stabilised;
+ bool ext_force;
+ std::string force_path;
+ } submodel;
+
+ typedef struct {
+ double lat;
+ double lon;
+ double alt;
+ double roll;
+ double azimuth;
+ double elevation;
+ double speed;
+ double wind_from_east;
+ double wind_from_north;
+ double speed_down_fps;
+ double speed_east_fps;
+ double speed_north_fps;
+ double total_speed_down;
+ double total_speed_east;
+ double total_speed_north;
+ double mass;
+ int id;
+ bool no_roll;
+ int parent_id;
+ } IC_struct;
+
+ FGSubmodelMgr();
+ ~FGSubmodelMgr();
+
+ void load();
+ void init();
+ void postinit();
+ void bind();
+ void unbind();
+ void update(double dt);
+ void updatelat(double lat);