Debian Codegraph @

Docs/README.submodels

raw
1 <?xml version="1.0"?>
2
3 <!--
4
5 Submodels are objects which can be dropped or launched from the user
6 aircraft. The trigger is a boolean property, which you define, which when
7 "true" causes the submodel to be released/launched.
8
9 A submodel will create an AIBallistic object which will follow a ballistic
10 path. By default one submodel will be released when the corresponding
11 trigger is "true".
12
13 Notes:
14 1. This utility is intended for ballistic objects which align to the
15 trajectory. Drag is applied based on this assumption: no allowance is
16 for changes in drag for objects which do not conform to this asumption.
17 made
18
19 2. While Inertia is calculated properly, Moment of Inertia and rotational
20 aerodynamic damping are simulated. It is assumed that the object is a cylinder
21 of uniform density - if your object does not conform to this, there will be
22 inaccuracies.
23
24 3. The program does not calculate windage for ballistic objects well. While
25 adequate for smoke effects, etc., for bullets, bombs, droptanks this is probably
26 best left at "False". Since the effects of wind on various ballistic objects is
27 uncertain, there is no plan to change this situation.
28
29 4. Submodels can be ensted to any depth, thus a submodel on expiry or impact etc,
30 can launch a child submodel, which in turn can launch a submodel. and so on. This
31 is the basis for Persistent Contrails, but any use is possible.
32
33 The initial conditions (IC) define the object's starting point (relative
34 to the user aircraft's "reported position"), and its initial speed and
35 direction (relative to the user aircraft). If you want to release many
36 similar objects with similar IC, then you may use the <repeat>, <delay>
37 and <count> properties to define this. The allowed properties are:
38
39 <name> The name of the submodel.
40 <model> The path to the visual model.
41 <trigger> The property which will act as the trigger. If this tag is not
42 included, the submodels will be released continuously, provided
43 <count> is set to -1.
44 <speed> Initial speed, in feet/sec, relative to user aircraft.
45 <speed-prop> The property containing the Initial speed, in feet/sec, relative to
46 user aircraft. If this path is found, <speed> will be overwritten.
47 <repeat> Set "true" if you want multiple releases of this submodel.
48 <delay> Time, in seconds, between repeated releases.
49 <count> Number of submodels available for multiple release.
50 -1 defines an unlimited number.
51 <slaved> If true, the submodel is slaved to the parent model.
52 <x-offset> Submodel's initial fore/aft position (in feet), relative to user
53 aircraft. Fore is positive.
54 <y-offset> Submodel's initial left/right position (in feet), relative to user
55 aircraft. Right is positive.
56 <z-offset> Submodel's initial up/down position (in feet), relative to user
57 aircraft. Up is positive.
58 <yaw-offset> Submodel's initial azimuth, in degrees, relative to user
59 aircraft'snose. Right is positive.
60 <pitch-offset> Submodel's initial elevation, in degrees, relative to user aircraft's
61 pitch. Up is positive.
62 <life> Life span in seconds.
63 Default is 900.0.
64 <buoyancy> In ft/sec/sec. Works opposite acceleration of gravity.
65 For example, if set to 32 the submodel will feel no
66 gravity. If greater than 32 the object will rise.
67 Default is 0.
68 <wind> Set to true if you want the submodel to react to the wind. Default
69 is "false".
70 <cd> The Coeffient of Drag. Varies with submodel shape - 0.295 for a
71 bullet, 0.045 for an airfoil. Enter an appropriate value. Defaults to
72 0.295.
73 <random> When this is true the Cd is varied by +- 5%. Useful for smoke or
74 contrails.
75 <eda> Effective drag area (sq ft). Usually the cross-sectional area of the
76 submodel normal to the airflow.
77 <weight> The weight of the submodel (lbs). NOT set to 0 on submodel release.
78 You may wish to set this value to 0 by means of key bindings or Nasal
79 script. Defaults to 0.25.
80 <contents> The path to the contents of a submodel. The contents must be in lbs.
81 Intended for use with drop tanks. The property value will be set to
82 0 on release of the submodel: do not also set to 0 elsewhere e.g. in
83 key bindings. Defaults to 0.
84 <random> Varies CD by +- 10%, initial azimuth by +- 10 degs, and life by
85 <randomness>
86 <randomness> If <random> is true, <randomness> is applied to <life>. 0 > Value < 1
87 are valid. Defaults to 0.5.
88 <no-roll> If true the submodel does not roll.
89 <impact> If true, the impact location (lat/lon) on the terrain is calculated.
90 The Material (e.g Grass)of the terrain, load resistance, and impact
91 velocity. Altitude agl is calculated.
92 <collision> If true, collisions with other objects is tested. If a collision is
93 detected then the position data are written to the "Report Node".
94 <fuze-range> Used in detecting collisions. The distance in feet between an object
95 and a submodel at which a collision is deemed to have occurred.
96 <expiry> If true, the current position of the submodel is written to the
97 "Report Node" when the submodel life expires.
98 <impact-reports> Defines a "Report Node". When an impact happens, then the path of
99 the submodel will be written to this node. An attached listener
100 function can evaluate the impact properties. If unset, reports go to
101 /ai/models/model-impact.
102
103 ***** experimental ****
104
105 <external-force> If true the submodel is subjected to an external force
106 <force-path> A string describing the property where the magnitude, azimuth and
107 elevation of the external force are to be found. The following child
108 properties are instantiated:
109 ~/force-lb
110 ~/force-azimuth-deg
111 ~/force-elevation-deg
112
113 You will have to set these values by some means (Nasal script etc.) to make use of this
114 utility.
115
116 <PropertyList>
117
118 <submodel>
119 <name>left gun</name>
120 <model>Models/Geometry/tracer.ac</model>
121 <trigger>ai/submodels/submodel[0]/trigger</trigger>
122 <speed>2750.0</speed>
123 <repeat>true</repeat>
124 <delay>0.25</delay>
125 <count>100</count>
126 <x-offset>1.0</x-offset>
127 <y-offset>-7.0</y-offset>
128 <z-offset>-2.0</z-offset>
129 <yaw-offset>0.4</yaw-offset>
130 <pitch-offset>1.8</pitch-offset>
131 <life>2.0</life>
132 </submodel>
133
134 <submodel>
135 <name>right gun</name>
136 <model>Models/Geometry/tracer.ac</model>
137 <trigger>ai/submodels/submodel[0]/trigger</trigger>
138 <speed>2750.0</speed>
139 <repeat>true</repeat>
140 <delay>0.25</delay>
141 <count>100</count>
142 <x-offset>1.0</x-offset>
143 <y-offset>7.0</y-offset>
144 <z-offset>-2.0</z-offset>
145 <yaw-offset>-0.4</yaw-offset>
146 <pitch-offset>1.8</pitch-offset>
147 <life>2.0</life>
148 </submodel>
149
150 <submodel>
151 <name>droptank-l</name>
152 <model>Aircraft/Hunter/Models/droptank-100gal.ac</model>
153 <trigger>controls/armament/station[0]/jettison-all</trigger>
154 <speed>0</speed>
155 <repeat>false</repeat>
156 <count>1</count>
157 <x-offset>0.820</x-offset>
158 <y-offset>-9.61</y-offset>
159 <z-offset>-2.39</z-offset>
160 <yaw-offset>0</yaw-offset>
161 <pitch-offset>0</pitch-offset>
162 <wind>false</wind>
163 <eda>2.11348887</eda>
164 <weight>170</weight>
165 <cd>0.045</cd>
166 <contents>consumables/fuel/tank[2]/level-lbs</contents>
167 </submodel>
168
169 <submodel>
170 <name>droptank-r</name>
171 <model>Aircraft/Hunter/Models/droptank-100gal.ac</model>
172 <trigger>controls/armament/station[1]/jettison-all</trigger>
173 <speed>0</speed>
174 <repeat>false</repeat>
175 <count>1</count>
176 <x-offset>0.820</x-offset>
177 <y-offset>9.61</y-offset>
178 <z-offset>-2.39</z-offset>
179 <yaw-offset>0</yaw-offset>
180 <pitch-offset>0</pitch-offset>
181 <wind>false</wind>
182 <eda>2.11348887</eda>
183 <weight>170</weight>
184 <cd>0.045</cd>
185 <contents>consumables/fuel/tank[3]/level-lbs</contents>
186 </submodel>
187
188 <submodel>
189 <name>engine exhaust r</name>
190 <model>Aircraft/seahawk/Models/exhaust_s.xml</model>
191 <trigger>sim/ai/aircraft/exhaust</trigger>
192 <speed-node>engines/engine/n1</speed-node>
193 <speed>10</speed>
194 <repeat>true</repeat>
195 <delay>0.1</delay>
196 <count>-1</count>
197 <x-offset>-3.5</x-offset>
198 <y-offset>2.6768</y-offset>
199 <z-offset>-0.3937</z-offset>
200 <yaw-offset>170</yaw-offset>
201 <life>10</life>
202 <buoyancy>128</buoyancy>
203 <aero-stabilised>0</aero-stabilised>
204 <wind>true</wind>
205 <eda>1</eda>
206 <cd>0.95</cd>
207 <weight>1</weight>
208 <random>1</random>
209 </submodel>
210
211 </PropertyList>
212
213 -->