Update slaved property
This commit is contained in:
parent
30f844c961
commit
53e5e5120f
1 changed files with 172 additions and 170 deletions
|
@ -1,170 +1,172 @@
|
||||||
<?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".
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
1. This utility is intended for ballistic objects which align to the
|
1. This utility is intended for ballistic objects which align to the
|
||||||
trajectory. Drag is applied based on this assumption: no allowance is
|
trajectory. Drag is applied based on this assumption: no allowance is
|
||||||
for changes in drag for objects which do not conform to this asumption.
|
for changes in drag for objects which do not conform to this asumption.
|
||||||
made
|
made
|
||||||
|
|
||||||
2. While Inertia is calculated properly, Moment of Inertia and rotational
|
2. While Inertia is calculated properly, Moment of Inertia and rotational
|
||||||
aerodynamic damping are simulated. It is assumed that the object is a cylinder
|
aerodynamic damping are simulated. It is assumed that the object is a cylinder
|
||||||
of uniform density - if your object does not conform to this, there will be
|
of uniform density - if your object does not conform to this, there will be
|
||||||
inaccuracies.
|
inaccuracies.
|
||||||
|
|
||||||
3. The program does not calculate windage for ballistic objects well. While
|
3. The program does not calculate windage for ballistic objects well. While
|
||||||
adequate for smoke effects, etc., for bullets, bombs, droptanks this is probably
|
adequate for smoke effects, etc., for bullets, bombs, droptanks this is probably
|
||||||
best left at "False". Since the effects of wind on various ballistic objects is
|
best left at "False". Since the effects of wind on various ballistic objects is
|
||||||
uncertain, there is no plan to change this situation.
|
uncertain, there is no plan to change this situation.
|
||||||
|
|
||||||
The initial conditions (IC) define the object's starting point (relative
|
The initial conditions (IC) define the object's starting point (relative
|
||||||
to the user aircraft's "reported position"), and its initial speed and
|
to the user aircraft's "reported position"), and its initial speed and
|
||||||
direction (relative to the user aircraft). If you want to release many
|
direction (relative to the user aircraft). If you want to release many
|
||||||
similar objects with similar IC, then you may use the <repeat>, <delay>
|
similar objects with similar IC, then you may use the <repeat>, <delay>
|
||||||
and <count> properties to define this. The allowed properties are:
|
and <count> properties to define this. The allowed properties are:
|
||||||
|
|
||||||
<name> The name of the submodel.
|
<name> The name of the submodel.
|
||||||
<model> The path to the visual model.
|
<model> The path to the visual model.
|
||||||
<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.
|
<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.
|
||||||
<speed> Initial speed, in feet/sec, relative to user aircraft.
|
<speed> Initial speed, in feet/sec, relative to user aircraft.
|
||||||
<speed-prop> The property containing the Initial speed, in feet/sec, relative to user aircraft. If this path is found, <speed> will be overwritten.
|
<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.
|
<repeat> Set "true" if you want multiple releases of this submodel.
|
||||||
<delay> Time, in seconds, between repeated releases.
|
<delay> Time, in seconds, between repeated releases.
|
||||||
<count> Number of submodels available for multiple release.
|
<count> Number of submodels available for multiple release.
|
||||||
-1 defines an unlimited number.
|
-1 defines an unlimited number.
|
||||||
<slaved> Not used yet.
|
<slaved> Not used yet.
|
||||||
<x-offset> Submodel's initial fore/aft position (in feet), relative to user aircraft. Fore is positive.
|
<x-offset> Submodel's initial fore/aft position (in feet), relative to user aircraft. Fore is positive.
|
||||||
<y-offset> Submodel's initial left/right position (in feet), relative to user aircraft. Right is positive.
|
<y-offset> Submodel's initial left/right position (in feet), relative to user aircraft. Right is positive.
|
||||||
<z-offset> Submodel's initial up/down position (in feet), relative to user aircraft. Up is positive.
|
<z-offset> Submodel's initial up/down position (in feet), relative to user aircraft. Up is positive.
|
||||||
<yaw-offset> Submodel's initial azimuth, in degrees, relative to user
|
<yaw-offset> Submodel's initial azimuth, in degrees, relative to user
|
||||||
aircraft'snose. Right is positive.
|
aircraft'snose. Right is positive.
|
||||||
<pitch-offset> Submodel's initial elevation, in degrees, relative to user aircraft's pitch. Up is positive.
|
<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.
|
<life> Life span in seconds. Default is 900.0.
|
||||||
<buoyancy> In ft/sec/sec. Works opposite acceleration of gravity.
|
<buoyancy> In ft/sec/sec. Works opposite acceleration of gravity.
|
||||||
For example, if set to 32 the submodel will feel no
|
For example, if set to 32 the submodel will feel no
|
||||||
gravity. If greater than 32 the object will rise.
|
gravity. If greater than 32 the object will rise.
|
||||||
Default is 0.
|
Default is 0.
|
||||||
<wind> Set to true if you want the submodel to react to the wind. Default is "false".
|
<wind> Set to true if you want the submodel to react to the wind. Default is "false".
|
||||||
<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.
|
<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.
|
||||||
<random> When this is true the Cd is varied by +- 5%. Useful for smoke or contrails.
|
<random> When this is true the Cd is varied by +- 5%. Useful for smoke or contrails.
|
||||||
<eda> Effective drag area (sq ft). Usually the cross-sectional area of the submodel normal to the airflow.
|
<eda> Effective drag area (sq ft). Usually the cross-sectional area of the submodel normal to the airflow.
|
||||||
<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.
|
<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.
|
||||||
Defaults to 0.25.
|
Defaults to 0.25.
|
||||||
<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.
|
<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.
|
||||||
<random> Varies CD by +- 5%.
|
<random> Varies CD by +- 5%.
|
||||||
<no-roll> If true the submodel does not roll.
|
<no-roll> If true the submodel does not roll.
|
||||||
<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.
|
<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.
|
||||||
<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.
|
<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.
|
||||||
|
|
||||||
***** experimental ****
|
***** experimental ****
|
||||||
<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:
|
<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:
|
||||||
~/force-lb"
|
~/force-lb"
|
||||||
~/force-azimuth-deg
|
~/force-azimuth-deg
|
||||||
~/force-elevation-deg
|
~/force-elevation-deg
|
||||||
|
|
||||||
You will have to set these values by some means (Nasal script etc.) to make use of this utility
|
You will have to set these values by some means (Nasal script etc.) to make use of this utility
|
||||||
|
|
||||||
|
|
||||||
<PropertyList>
|
<PropertyList>
|
||||||
|
|
||||||
<submodel>
|
<submodel>
|
||||||
<name>left gun</name>
|
<name>left gun</name>
|
||||||
<model>Models/Geometry/tracer.ac</model>
|
<model>Models/Geometry/tracer.ac</model>
|
||||||
<trigger>ai/submodels/submodel[0]/trigger</trigger>
|
<trigger>ai/submodels/submodel[0]/trigger</trigger>
|
||||||
<speed>2750.0</speed>
|
<speed>2750.0</speed>
|
||||||
<repeat>true</repeat>
|
<repeat>true</repeat>
|
||||||
<delay>0.25</delay>
|
<delay>0.25</delay>
|
||||||
<count>100</count>
|
<count>100</count>
|
||||||
<x-offset>1.0</x-offset>
|
<x-offset>1.0</x-offset>
|
||||||
<y-offset>-7.0</y-offset>
|
<y-offset>-7.0</y-offset>
|
||||||
<z-offset>-2.0</z-offset>
|
<z-offset>-2.0</z-offset>
|
||||||
<yaw-offset>0.4</yaw-offset>
|
<yaw-offset>0.4</yaw-offset>
|
||||||
<pitch-offset>1.8</pitch-offset>
|
<pitch-offset>1.8</pitch-offset>
|
||||||
<life>2.0</life>
|
<life>2.0</life>
|
||||||
</submodel>
|
</submodel>
|
||||||
|
|
||||||
<submodel>
|
<submodel>
|
||||||
<name>right gun</name>
|
<name>right gun</name>
|
||||||
<model>Models/Geometry/tracer.ac</model>
|
<model>Models/Geometry/tracer.ac</model>
|
||||||
<trigger>ai/submodels/submodel[0]/trigger</trigger>
|
<trigger>ai/submodels/submodel[0]/trigger</trigger>
|
||||||
<speed>2750.0</speed>
|
<speed>2750.0</speed>
|
||||||
<repeat>true</repeat>
|
<repeat>true</repeat>
|
||||||
<delay>0.25</delay>
|
<delay>0.25</delay>
|
||||||
<count>100</count>
|
<count>100</count>
|
||||||
<x-offset>1.0</x-offset>
|
<x-offset>1.0</x-offset>
|
||||||
<y-offset>7.0</y-offset>
|
<y-offset>7.0</y-offset>
|
||||||
<z-offset>-2.0</z-offset>
|
<z-offset>-2.0</z-offset>
|
||||||
<yaw-offset>-0.4</yaw-offset>
|
<yaw-offset>-0.4</yaw-offset>
|
||||||
<pitch-offset>1.8</pitch-offset>
|
<pitch-offset>1.8</pitch-offset>
|
||||||
<life>2.0</life>
|
<life>2.0</life>
|
||||||
</submodel>
|
</submodel>
|
||||||
|
|
||||||
<submodel>
|
<submodel>
|
||||||
<name>droptank-l</name>
|
<name>droptank-l</name>
|
||||||
<model>Aircraft/Hunter/Models/droptank-100gal.ac</model>
|
<model>Aircraft/Hunter/Models/droptank-100gal.ac</model>
|
||||||
<trigger>controls/armament/station[0]/jettison-all</trigger>
|
<trigger>controls/armament/station[0]/jettison-all</trigger>
|
||||||
<speed>0</speed>
|
<speed>0</speed>
|
||||||
<repeat>false</repeat>
|
<repeat>false</repeat>
|
||||||
<count>1</count>
|
<count>1</count>
|
||||||
<x-offset>0.820</x-offset>
|
<x-offset>0.820</x-offset>
|
||||||
<y-offset>-9.61</y-offset>
|
<y-offset>-9.61</y-offset>
|
||||||
<z-offset>-2.39</z-offset>
|
<z-offset>-2.39</z-offset>
|
||||||
<yaw-offset>0</yaw-offset>
|
<yaw-offset>0</yaw-offset>
|
||||||
<pitch-offset>0</pitch-offset>
|
<pitch-offset>0</pitch-offset>
|
||||||
<wind>false</wind>
|
<wind>false</wind>
|
||||||
<eda>2.11348887</eda>
|
<eda>2.11348887</eda>
|
||||||
<weight>170</weight>
|
<weight>170</weight>
|
||||||
<cd>0.045</cd>
|
<cd>0.045</cd>
|
||||||
<contents>consumables/fuel/tank[2]/level-lbs</contents>
|
<contents>consumables/fuel/tank[2]/level-lbs</contents>
|
||||||
</submodel>
|
</submodel>
|
||||||
|
|
||||||
<submodel>
|
<submodel>
|
||||||
<name>droptank-r</name>
|
<name>droptank-r</name>
|
||||||
<model>Aircraft/Hunter/Models/droptank-100gal.ac</model>
|
<model>Aircraft/Hunter/Models/droptank-100gal.ac</model>
|
||||||
<trigger>controls/armament/station[1]/jettison-all</trigger>
|
<trigger>controls/armament/station[1]/jettison-all</trigger>
|
||||||
<speed>0</speed>
|
<speed>0</speed>
|
||||||
<repeat>false</repeat>
|
<repeat>false</repeat>
|
||||||
<count>1</count>
|
<count>1</count>
|
||||||
<x-offset>0.820</x-offset>
|
<x-offset>0.820</x-offset>
|
||||||
<y-offset>9.61</y-offset>
|
<y-offset>9.61</y-offset>
|
||||||
<z-offset>-2.39</z-offset>
|
<z-offset>-2.39</z-offset>
|
||||||
<yaw-offset>0</yaw-offset>
|
<yaw-offset>0</yaw-offset>
|
||||||
<pitch-offset>0</pitch-offset>
|
<pitch-offset>0</pitch-offset>
|
||||||
<wind>false</wind>
|
<wind>false</wind>
|
||||||
<eda>2.11348887</eda>
|
<eda>2.11348887</eda>
|
||||||
<weight>170</weight>
|
<weight>170</weight>
|
||||||
<cd>0.045</cd>
|
<cd>0.045</cd>
|
||||||
<contents>consumables/fuel/tank[3]/level-lbs</contents>
|
<contents>consumables/fuel/tank[3]/level-lbs</contents>
|
||||||
</submodel>
|
</submodel>
|
||||||
|
|
||||||
<submodel>
|
<submodel>
|
||||||
<name>engine exhaust r</name>
|
<name>engine exhaust r</name>
|
||||||
<model>Aircraft/seahawk/Models/exhaust_s.xml</model>
|
<model>Aircraft/seahawk/Models/exhaust_s.xml</model>
|
||||||
<trigger>sim/ai/aircraft/exhaust</trigger>
|
<trigger>sim/ai/aircraft/exhaust</trigger>
|
||||||
<speed-node>engines/engine/n1</speed-node>
|
<speed-node>engines/engine/n1</speed-node>
|
||||||
<speed>10</speed>
|
<speed>10</speed>
|
||||||
<repeat>true</repeat>
|
<repeat>true</repeat>
|
||||||
<delay>0.1</delay>
|
<delay>0.1</delay>
|
||||||
<count>-1</count>
|
<count>-1</count>
|
||||||
<x-offset>-3.5</x-offset>
|
<x-offset>-3.5</x-offset>
|
||||||
<y-offset>2.6768</y-offset>
|
<y-offset>2.6768</y-offset>
|
||||||
<z-offset>-0.3937</z-offset>
|
<z-offset>-0.3937</z-offset>
|
||||||
<yaw-offset>170</yaw-offset>
|
<yaw-offset>170</yaw-offset>
|
||||||
<life>10</life>
|
<life>10</life>
|
||||||
<buoyancy>128</buoyancy>
|
<buoyancy>128</buoyancy>
|
||||||
<aero-stabilised>0</aero-stabilised>
|
<aero-stabilised>0</aero-stabilised>
|
||||||
<wind>true</wind>
|
<wind>true</wind>
|
||||||
<eda>1</eda>
|
<eda>1</eda>
|
||||||
<cd>0.95</cd>
|
<cd>0.95</cd>
|
||||||
<weight>1</weight>
|
<weight>1</weight>
|
||||||
<random>1</random>
|
<random>1</random>
|
||||||
</submodel>
|
</submodel>
|
||||||
|
|
||||||
</PropertyList>
|
</PropertyList>
|
||||||
|
|
||||||
|
-->
|
||||||
|
|
Loading…
Add table
Reference in a new issue