1
0
Fork 0

Add information on "External Force" (experimantal)

This commit is contained in:
vmmeazza 2007-12-24 21:13:39 +00:00
parent d64a6dba06
commit bece76964e

View file

@ -1,147 +1,170 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<!-- Submodels are objects which can be dropped or launched from the user <!-- Submodels are objects which can be dropped or launched from the user
aircraft. The trigger is a boolean property, which you define, which when aircraft. The trigger is a boolean property, which you define, which when
"true" causes the submodel to be released/launched. "true" causes the submodel to be released/launched.
A submodel will create an AIBallistic object which will follow a ballistic A submodel will create an AIBallistic object which will follow a ballistic
path. By default one submodel will be released when the corresponding path. By default one submodel will be released when the corresponding
trigger is "true". trigger is "true".
The initial conditions (IC) define the object's starting point (relative Notes:
to the user aircraft's "reported position"), and its initial speed and 1. This utility is intended for ballistic objects which align to the
direction (relative to the user aircraft). If you want to release many trajectory. Drag is applied based on this assumption: no allowance is
similar objects with similar IC, then you may use the <repeat>, <delay> for changes in drag for objects which do not conform to this asumption.
and <count> properties to define this. The allowed properties are: made
<name> The name of the submodel. 2. While Inertia is calculated properly, Moment of Inertia and rotational
<model> The path to the visual model. aerodynamic damping are simulated. It is assumed that the object is a cylinder
<trigger> The property which will act as the trigger. If this tag is not included, the submodels will be released continuously, provided <count> is set to -1. of uniform density - if your object does not conform to this, there will be
<speed> Initial speed, in feet/sec, relative to user aircraft. inaccuracies.
<speed-prop> The property containing the Initial speed, in feet/sec, relative to user aircraft. If this path is found, <speed> will be overwritten.
<repeat> Set "true" if you want multiple releases of this submodel. 3. The program does not calculate windage for ballistic objects well. While
<delay> Time, in seconds, between repeated releases. adequate for smoke effects, etc., for bullets, bombs, droptanks this is probably
<count> Number of submodels available for multiple release. best left at "False". Since the effects of wind on various ballistic objects is
-1 defines an unlimited number. uncertain, there is no plan to change this situation.
<slaved> Not used yet.
<x-offset> Submodel's initial fore/aft position (in feet), relative to user aircraft. Fore is positive. The initial conditions (IC) define the object's starting point (relative
<y-offset> Submodel's initial left/right position (in feet), relative to user aircraft. Right is positive. to the user aircraft's "reported position"), and its initial speed and
<z-offset> Submodel's initial up/down position (in feet), relative to user aircraft. Up is positive. direction (relative to the user aircraft). If you want to release many
<yaw-offset> Submodel's initial azimuth, in degrees, relative to user similar objects with similar IC, then you may use the <repeat>, <delay>
aircraft'snose. Right is positive. and <count> properties to define this. The allowed properties are:
<pitch-offset> Submodel's initial elevation, in degrees, relative to user aircraft's pitch. Up is positive.
<life> Life span in seconds. Default is 900.0. <name> The name of the submodel.
<buoyancy> In ft/sec/sec. Works opposite acceleration of gravity. <model> The path to the visual model.
For example, if set to 32 the submodel will feel no <trigger> The property which will act as the trigger. If this tag is not included, the submodels will be released continuously, provided <count> is set to -1.
gravity. If greater than 32 the object will rise. <speed> Initial speed, in feet/sec, relative to user aircraft.
Default is 0. <speed-prop> The property containing the Initial speed, in feet/sec, relative to user aircraft. If this path is found, <speed> will be overwritten.
<wind> Set to true if you want the submodel to react to the wind.Default is "false". <repeat> Set "true" if you want multiple releases of this submodel.
<cd> The Coeffient of Drag. Varies with submodel shape - 0.295 for a bullet, 0.045 for an airfoil. Enter an appropriate value. Defaults to 0.295. <delay> Time, in seconds, between repeated releases.
<random> When this is true the Cd is varied by +- 5%. Useful for smoke or contrails. <count> Number of submodels available for multiple release.
<eda> Effective drag area (sq ft). Usually the cross-sectional area of the submodel normal to the airflow. -1 defines an unlimited number.
<weight> The weight of the submodel (lbs). NOT set to 0 on submodel release. You may wish to set this value to 0 by means of key bindings or Nasal script. <slaved> Not used yet.
Defaults to 0.25. <x-offset> Submodel's initial fore/aft position (in feet), relative to user aircraft. Fore is positive.
<contents> The path to the contents of a submodel. The contents must be in lbs. Intended for use with drop tanks. The property value will be set to 0 on release of the submodel: do not also set to 0 elsewhere e.g. in key bindings. Defaults to 0. <y-offset> Submodel's initial left/right position (in feet), relative to user aircraft. Right is positive.
<random> Varies CD by +- 5%. <z-offset> Submodel's initial up/down position (in feet), relative to user aircraft. Up is positive.
<no-roll> If true the submodel does not roll. <yaw-offset> Submodel's initial azimuth, in degrees, relative to user
<impact> If true, the impact location (lat/lon) on the terrain is calculated. The Material (e.g Grass)of the terrain, load resistance, impact velocity and energy are returned. Altitude agl is calculated. aircraft'snose. Right is positive.
<impact-reports> Defines a report node. When an impact happens, then the path of the submodel will be written to this node. An attached listener function can evaluate the impact properties. If unset, reports go to /ai/models/model-impact. <pitch-offset> Submodel's initial elevation, in degrees, relative to user aircraft's pitch. Up is positive.
<life> Life span in seconds. Default is 900.0.
--> <buoyancy> In ft/sec/sec. Works opposite acceleration of gravity.
For example, if set to 32 the submodel will feel no
<PropertyList> gravity. If greater than 32 the object will rise.
Default is 0.
<submodel> <wind> Set to true if you want the submodel to react to the wind. Default is "false".
<name>left gun</name> <cd> The Coeffient of Drag. Varies with submodel shape - 0.295 for a bullet, 0.045 for an airfoil. Enter an appropriate value. Defaults to 0.295.
<model>Models/Geometry/tracer.ac</model> <random> When this is true the Cd is varied by +- 5%. Useful for smoke or contrails.
<trigger>ai/submodels/submodel[0]/trigger</trigger> <eda> Effective drag area (sq ft). Usually the cross-sectional area of the submodel normal to the airflow.
<speed>2750.0</speed> <weight> The weight of the submodel (lbs). NOT set to 0 on submodel release. You may wish to set this value to 0 by means of key bindings or Nasal script.
<repeat>true</repeat> Defaults to 0.25.
<delay>0.25</delay> <contents> The path to the contents of a submodel. The contents must be in lbs. Intended for use with drop tanks. The property value will be set to 0 on release of the submodel: do not also set to 0 elsewhere e.g. in key bindings. Defaults to 0.
<count>100</count> <random> Varies CD by +- 5%.
<x-offset>1.0</x-offset> <no-roll> If true the submodel does not roll.
<y-offset>-7.0</y-offset> <impact> If true, the impact location (lat/lon) on the terrain is calculated. The Material (e.g Grass)of the terrain, load resistance, impact velocity and energy are returned. Altitude agl is calculated.
<z-offset>-2.0</z-offset> <impact-reports> Defines a report node. When an impact happens, then the path of the submodel will be written to this node. An attached listener function can evaluate the impact properties. If unset, reports go to /ai/models/model-impact.
<yaw-offset>0.4</yaw-offset>
<pitch-offset>1.8</pitch-offset> ***** experimental ****
<life>2.0</life> <external-force> If true the submodel is subjected to an external force<force-path> A string describing the property where the magnitude, azimuth and elevation of the external force is to be found. The following child properties are instantiated:
</submodel> ~/force-lb"
~/force-azimuth-deg
<submodel> ~/force-elevation-deg
<name>right gun</name>
<model>Models/Geometry/tracer.ac</model> You will have to set these values by some means (Nasal script etc.) to make use of this utility
<trigger>ai/submodels/submodel[0]/trigger</trigger>
<speed>2750.0</speed>
<repeat>true</repeat> <PropertyList>
<delay>0.25</delay>
<count>100</count> <submodel>
<x-offset>1.0</x-offset> <name>left gun</name>
<y-offset>7.0</y-offset> <model>Models/Geometry/tracer.ac</model>
<z-offset>-2.0</z-offset> <trigger>ai/submodels/submodel[0]/trigger</trigger>
<yaw-offset>-0.4</yaw-offset> <speed>2750.0</speed>
<pitch-offset>1.8</pitch-offset> <repeat>true</repeat>
<life>2.0</life> <delay>0.25</delay>
</submodel> <count>100</count>
<x-offset>1.0</x-offset>
<submodel> <y-offset>-7.0</y-offset>
<name>droptank-l</name> <z-offset>-2.0</z-offset>
<model>Aircraft/Hunter/Models/droptank-100gal.ac</model> <yaw-offset>0.4</yaw-offset>
<trigger>controls/armament/station[0]/jettison-all</trigger> <pitch-offset>1.8</pitch-offset>
<speed>0</speed> <life>2.0</life>
<repeat>false</repeat> </submodel>
<count>1</count>
<x-offset>0.820</x-offset> <submodel>
<y-offset>-9.61</y-offset> <name>right gun</name>
<z-offset>-2.39</z-offset> <model>Models/Geometry/tracer.ac</model>
<yaw-offset>0</yaw-offset> <trigger>ai/submodels/submodel[0]/trigger</trigger>
<pitch-offset>0</pitch-offset> <speed>2750.0</speed>
<wind>false</wind> <repeat>true</repeat>
<eda>2.11348887</eda> <delay>0.25</delay>
<weight>170</weight> <count>100</count>
<cd>0.045</cd> <x-offset>1.0</x-offset>
<contents>consumables/fuel/tank[2]/level-lbs</contents> <y-offset>7.0</y-offset>
</submodel> <z-offset>-2.0</z-offset>
<yaw-offset>-0.4</yaw-offset>
<submodel> <pitch-offset>1.8</pitch-offset>
<name>droptank-r</name> <life>2.0</life>
<model>Aircraft/Hunter/Models/droptank-100gal.ac</model> </submodel>
<trigger>controls/armament/station[1]/jettison-all</trigger>
<speed>0</speed> <submodel>
<repeat>false</repeat> <name>droptank-l</name>
<count>1</count> <model>Aircraft/Hunter/Models/droptank-100gal.ac</model>
<x-offset>0.820</x-offset> <trigger>controls/armament/station[0]/jettison-all</trigger>
<y-offset>9.61</y-offset> <speed>0</speed>
<z-offset>-2.39</z-offset> <repeat>false</repeat>
<yaw-offset>0</yaw-offset> <count>1</count>
<pitch-offset>0</pitch-offset> <x-offset>0.820</x-offset>
<wind>false</wind> <y-offset>-9.61</y-offset>
<eda>2.11348887</eda> <z-offset>-2.39</z-offset>
<weight>170</weight> <yaw-offset>0</yaw-offset>
<cd>0.045</cd> <pitch-offset>0</pitch-offset>
<contents>consumables/fuel/tank[3]/level-lbs</contents> <wind>false</wind>
</submodel> <eda>2.11348887</eda>
<weight>170</weight>
<submodel> <cd>0.045</cd>
<name>engine exhaust r</name> <contents>consumables/fuel/tank[2]/level-lbs</contents>
<model>Aircraft/seahawk/Models/exhaust_s.xml</model> </submodel>
<trigger>sim/ai/aircraft/exhaust</trigger>
<speed-node>engines/engine/n1</speed-node> <submodel>
<speed>10</speed> <name>droptank-r</name>
<repeat>true</repeat> <model>Aircraft/Hunter/Models/droptank-100gal.ac</model>
<delay>0.1</delay> <trigger>controls/armament/station[1]/jettison-all</trigger>
<count>-1</count> <speed>0</speed>
<x-offset>-3.5</x-offset> <repeat>false</repeat>
<y-offset>2.6768</y-offset> <count>1</count>
<z-offset>-0.3937</z-offset> <x-offset>0.820</x-offset>
<yaw-offset>170</yaw-offset> <y-offset>9.61</y-offset>
<life>10</life> <z-offset>-2.39</z-offset>
<buoyancy>128</buoyancy> <yaw-offset>0</yaw-offset>
<aero-stabilised>0</aero-stabilised> <pitch-offset>0</pitch-offset>
<wind>true</wind> <wind>false</wind>
<eda>1</eda> <eda>2.11348887</eda>
<cd>0.95</cd> <weight>170</weight>
<weight>1</weight> <cd>0.045</cd>
<random>1</random> <contents>consumables/fuel/tank[3]/level-lbs</contents>
</submodel> </submodel>
</PropertyList> <submodel>
<name>engine exhaust r</name>
<model>Aircraft/seahawk/Models/exhaust_s.xml</model>
<trigger>sim/ai/aircraft/exhaust</trigger>
<speed-node>engines/engine/n1</speed-node>
<speed>10</speed>
<repeat>true</repeat>
<delay>0.1</delay>
<count>-1</count>
<x-offset>-3.5</x-offset>
<y-offset>2.6768</y-offset>
<z-offset>-0.3937</z-offset>
<yaw-offset>170</yaw-offset>
<life>10</life>
<buoyancy>128</buoyancy>
<aero-stabilised>0</aero-stabilised>
<wind>true</wind>
<eda>1</eda>
<cd>0.95</cd>
<weight>1</weight>
<random>1</random>
</submodel>
</PropertyList>