Re: [Flightgear-devel] AI related
> Right now there are two instances where AI objects are created on-the-fly. > One is in the submodels manager (see /source/src/AIModel/submodels.cxx). > These are ballistic AI objects the emanate from the user airplane. > Currently this is used for contrails, smoke, flares, tracers, etc. > > The other instance is Durk's Traffic Manager, which creates AI aircraft > based on a schedule, and creates flightplans for them. This provides > ongoing airline traffic. > > You might want to have a look at Traffic/Schedule.cxx, around line 353, where I'm creating new AIAircraft objects. These models have their own FDM, however, which take care of moving them around. If you want to move the ojects around yourself, you probably have to write your own movement code, possibly by deriving your own class from AIBase. HTH, Durk ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
Re: [Flightgear-devel] AI related
> I'm looking for documentation about AI objects. Maybe someone can help : I > want to be able to create AI objects within my code on the fly, to be able > to move them and let FG draw them. > Does somebody has an idea ? remarks ? > Can somebody point me on doc ? There is some here: http://www.seedwiki.com/wiki/flight_gear/ai_model.cfm?wpid=141766 but a problem with rendering XML in wiki makes them hard to read. Right now there are two instances where AI objects are created on-the-fly. One is in the submodels manager (see /source/src/AIModel/submodels.cxx). These are ballistic AI objects the emanate from the user airplane. Currently this is used for contrails, smoke, flares, tracers, etc. The other instance is Durk's Traffic Manager, which creates AI aircraft based on a schedule, and creates flightplans for them. This provides ongoing airline traffic. Dave ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
RE: [Flightgear-devel] AI related
David BONNEVILLE > Hi there, > > I'm looking for documentation about AI objects. Maybe someone can help : I > want > to be able to create AI objects within my code on the fly, to be able to > move > them and let FG draw them. > Does somebody has an idea ? remarks ? > Can somebody point me on doc ? > Sounds as if AI Ballistic objects might do much of what you want. See README.submodels in /data/docs Regards, Vivian ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d