1
0
Fork 0

Updated to include terrain collision

This commit is contained in:
vmmeazza 2007-05-15 21:54:25 +00:00
parent c67f1d1bac
commit 746cb353d1

View file

@ -5,7 +5,7 @@
"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 The initial conditions (IC) define the object's starting point (relative
@ -14,49 +14,39 @@
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 <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.
not included, the submodels will be released continuously, <speed> Initial speed, in feet/sec, relative to user aircraft.
provided <count> is set to -1. <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> Initial speed, in feet/sec, relative to user aircraft. <repeat> Set "true" if you want multiple releases of this submodel.
<speed-prop> The property containing the Initial speed, in feet/sec, <delay> Time, in seconds, between repeated releases.
relative to user aircraft. If this path is found, <speed> <count> Number of submodels available for multiple release.
will be overwritten. -1 defines an unlimited number.
<repeat> Set "true" if you want multiple releases of this submodel. <slaved> Not used yet.
<delay> Time, in seconds, between repeated releases. <x-offset> Submodel's initial fore/aft position (in feet), relative to user aircraft. Fore is positive.
<count> Number of submodels available for multiple release. <y-offset> Submodel's initial left/right position (in feet), relative to user aircraft. Right is positive.
-1 defines an unlimited number. <z-offset> Submodel's initial up/down position (in feet), relative to user aircraft. Up is positive.
<slaved> Not used yet. <yaw-offset> Submodel's initial azimuth, in degrees, relative to user
<x-offset> Submodel's initial fore/aft position (in feet), relative to user aircraft'snose. Right is positive.
aircraft. Fore is positive. <pitch-offset> Submodel's initial elevation, in degrees, relative to user aircraft's pitch. Up is positive.
<y-offset> Submodel's initial left/right position (in feet), relative to user <life> Life span in seconds. Default is 900.0.
aircraft. Right is positive. <buoyancy> In ft/sec/sec. Works opposite acceleration of gravity.
<z-offset> Submodel's initial up/down position (in feet), relative to user For example, if set to 32 the submodel will feel no
aircraft. Up is positive. gravity. If greater than 32 the object will rise.
<yaw-offset> Submodel's initial azimuth, in degrees, relative to user Default is 0.
aircraft'snose. Right is positive. <wind> Set to true if you want the submodel to react to the wind.Default is "false".
<pitch-offset> Submodel's initial elevation, in degrees, relative to user <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.
aircraft's pitch. Up is positive. <random> When this is true the Cd is varied by +- 5%. Useful for smoke or contrails.
<life> Life span in seconds. Default is 900.0. <eda> Effective drag area (sq ft). Usually the cross-sectional area of the submodel normal to the airflow.
<buoyancy> In ft/sec/sec. Works opposite acceleration of gravity. <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.
For example, if set to 32 the submodel will feel no Defaults to 0.25.
gravity. If greater than 32 the object will rise. <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.
Default is 0. <random> Varies CD by +- 5%.
<wind> Set to true if you want the submodel to react to the wind. <no-roll> If true the submodel does not roll.
Default is "false". <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.
<cd> The Coeffient of Drag. Varies with submodel shape - 0.295 for a bullet, <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.
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.
<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.
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.
--> -->
<PropertyList> <PropertyList>
@ -92,8 +82,8 @@
<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>
@ -112,7 +102,7 @@
<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>