]> git.mxchange.org Git - flightgear.git/blob - docs-mini/README.submodels
Sync w. JSBSim CVS
[flightgear.git] / docs-mini / README.submodels
1 <?xml version="1.0"?>
2
3 <!--  Submodels are objects which can be dropped or launched from the user
4       aircraft. The trigger is a boolean property, which you define, which when
5       "true" causes the submodel to be released/launched.
6
7       A submodel will create an AIBallistic object which will follow a ballistic
8       path. By default one submodel will be released when the corresponding 
9       trigger is "true".
10
11       The initial conditions (IC) define the object's starting point (relative
12       to the user aircraft's "reported position"), and its initial speed and
13       direction (relative to the user aircraft).  If you want to release many
14       similar objects with similar IC, then you may use the <repeat>, <delay>
15       and <count> properties to define this.  The allowed properties are:
16
17       <name>         The name of the submodel.
18       <model>        The path to the visual model.
19       <trigger>      The property which will act as the trigger. 
20       <speed>        Initial speed, in feet/sec, relative to user aircraft.
21       <repeat>       Set "true" if you want multiple releases of this submodel.
22       <delay>        Time, in seconds, between repeated releases.
23       <count>        Number of submodels available for multiple release.
24                      -1 defines an unlimited number.
25       <slaved>       Not used yet.
26       <x-offset>     Submodel's initial fore/aft position relative to user
27                      aircraft.   Fore is positive.
28       <y-offset>     Submodel's initial left/right position relative to user
29                      aircraft.   Right is positive.
30       <z-offset>     Submodel's initial up/down position relative to user
31                      aircraft.   Up is positive.
32       <yaw-offset>   Submodel's initial azimuth, in degrees, relative to user
33                      aircraft'snose.   Right is positive.
34       <pitch-offset> Submodel's initial elevation, in degrees, relative to user
35                      aircraft's pitch.    Up is positive.
36       <eda>          Equivalent Drag Area in ft squared.  The object is assumed
37                      to have a  mass of 0.03 slugs and a drag coefficient of
38                      0.295, and sea-level air density is assumed.  Adjust the
39                      EDA to give the model the ballistics you need.
40                      The default value is 0.007.
41       <life>         Life span in seconds.  Default is 900.0.
42       <buoyancy>     In ft/sec/sec.  Works opposite acceleration of gravity.
43                      For example, if set to 32 the submodel will feel no 
44                      gravity. If greater than 32 the object will rise.
45                      Default is 0.
46       <wind>         Set to true if you want the submodel to react to the wind.
47                      Default is "false". 
48 -->  
49  
50 <PropertyList>
51
52   <submodel>
53     <name>left gun</name>
54     <model>Models/Geometry/tracer.ac</model>
55     <trigger>systems/submodels/submodel[0]/trigger</trigger>
56     <speed>2750.0</speed>
57     <repeat>true</repeat>
58     <delay>0.25</delay>
59     <count>100</count>
60     <x-offset>1.0</x-offset>
61     <y-offset>-7.0</y-offset>
62     <z-offset>-2.0</z-offset>
63     <yaw-offset>0.4</yaw-offset>
64     <pitch-offset>1.8</pitch-offset>
65     <life>2.0</life>
66   </submodel>
67
68   <submodel>
69     <name>right gun</name>
70     <model>Models/Geometry/tracer.ac</model>
71     <trigger>systems/submodels/submodel[0]/trigger</trigger>
72     <speed>2750.0</speed>
73     <repeat>true</repeat>
74     <delay>0.25</delay>
75     <count>100</count>
76     <x-offset>1.0</x-offset>
77     <y-offset>7.0</y-offset>
78     <z-offset>-2.0</z-offset>
79     <yaw-offset>-0.4</yaw-offset>
80     <pitch-offset>1.8</pitch-offset>
81     <life>2.0</life>
82   </submodel>
83
84 </PropertyList>