* gerard robin -- Saturday 22 December 2007: > I would like to know (to calculate) the diff of position between the > position of the aircraft and the position of a specific point on an > AI object in my case the catapult and the wires on the carrier. > Is their any way (nasal ??) to get it out of the YASim code ?
YASim doesn't publish that, AFAIK. Unfortunately, not even the cat position seems to be in the property tree. (Should be available as x/y/z offset to the object's reference point.) All you can do at the moment is to hard-code the cat offsets, and then to get the carrier position from /ai/models/carrier/position/*, to convert that to x/y/z via Nasal's geodtocart()function, to get the aircraft position from /position/* and also to convert that to x/y/z. m. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel