AI Systems: Difference between revisions

Jump to navigation Jump to search
m (typo)
Line 323: Line 323:


As an example examine the submodels file in the Aircraft/737-300 directory.  This file creates two submodels which will become the airplane's left and right engine contrails.  Each contrail needs its own submodel definition because the contrails begin at different locations.  Each contrail consists of a train of individual "puff" models that are released in rapid succession as long as the "trigger" property is true.  We ensure an unlimited supply of puffs by setting the "count" parameter to -1. The individual puffs, being AIBallistic objects, will follow their own ballistic paths once released.  In this case we have used the "bouyancy" parameter to negate gravity in the ballistic path.  The puffs have been given a life span of eight seconds.  At cruising speed the [[Boeing 737|737]] will thus have about 400 puffs behind it at any moment.
As an example examine the submodels file in the Aircraft/737-300 directory.  This file creates two submodels which will become the airplane's left and right engine contrails.  Each contrail needs its own submodel definition because the contrails begin at different locations.  Each contrail consists of a train of individual "puff" models that are released in rapid succession as long as the "trigger" property is true.  We ensure an unlimited supply of puffs by setting the "count" parameter to -1. The individual puffs, being AIBallistic objects, will follow their own ballistic paths once released.  In this case we have used the "bouyancy" parameter to negate gravity in the ballistic path.  The puffs have been given a life span of eight seconds.  At cruising speed the [[Boeing 737|737]] will thus have about 400 puffs behind it at any moment.
[http://wiki.flightgear.org/images/4/48/Submodels.xml This annotated submodels.xml file] gives a good idea about how to create submodel files, what parameters are available and how to use them, and also the type of research needed to make sure the information and models are accurate historically.


=== Multiplayer Controlled Traffic ===
=== Multiplayer Controlled Traffic ===
482

edits

Navigation menu