Maik Justus > Sent: 18 December 2007 21:02 > To: FlightGear developers discussions > Subject: [Flightgear-devel] External Cargo,was: Re: > screenshots (and "snapshots") > > > Hi, > Vivian Meazza schrieb am 18.12.2007 00:27: > > Maik wrote > > > >> Hi, > >> Melchior FRANZ schrieb am 17.12.2007 02:18: > >> > >>> * Georg Vollnhals -- Monday 17 December 2007: > >>> > >>> > >>>> Just now (!!!) remembering Torsten's Dragonfly banner-trick (!!!) > >>>> which is pretty similar: > >>>> > >>>> > >>> Yes, it's clearly a job for Maik's winch/anchor feature. He has > >>> already lifted me via MP: I was in a sgs233, and Maik > >>> > >> lifted me with a > >> > >>> bo105. There's just no visible rope (yet). > >>> > >>> > >>> > >> Can an external force be added to the AIBallistic Objects? > >> > > > > I don't see why not. Just designing on the back of an envelope - we > > already have one - wind. So in principle we add something > like another > > wind. > > > > Not in the next few days though. > > > > Vivian > > > I had a look to AIBase.?xx and AIBallisitic.?xx. I think all > we need is > already there. The objects speed can be modified by a Nasal script. > YASims winch/aerotow/anchor can be connected directly to any > AI object > and (with some Nasal code, which copies the location) to > anything else. > The force on the other object is calculated and stored in the > property > tree. Some Nasal code only need to take this force, multiply it by dt > and divide it by the objects mass and add the result to the objects > speed (which need to be converted to (and afterwards back from) the > earth-coordinate system). If we use a AIBallistic object, the gravity > and drag effects would be calculated automatically. > Therefore external cargo missions, SAR missions or even banner-towing > with realistic forces on the aircraft should be possible with fg1.0.0 >
I've just a few moments ago added a few lines of code to AIBallistic which apply an external force (using the same math as above). The rest works as before. I just need few properties to set the magnitude and vector of the external force and it will be done, at least for testing. It's trivial really, but I'm assuming that the external force applies no rotational force to the object. I haven't a great deal of time available in the run up to Christmas so no promises on completion. Vivian ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel