Hi Lee, >From: Lee Elliott <[EMAIL PROTECTED]> > >On Sunday 18 June 2006 00:18, dene maxwell wrote: > > Hi > > I'm trying to get an xml animation going for AI taildraggers, > > as the AI FDM doesn't seem to cater for this. I have copied > > the rotate animation example from the Model-HowTo; > > > > <!-- ***** TailDragger ***** --> > > <animation> > > <type>rotate</type> > > > > <property>/ai/models/aircraft/velocities/true-airspeed-kt</pro > >perty> <factor>1</factor> > > <offset>1</offset> > > <min>0.0</min> > > <max>13.0</max> > > <center> > > <x-m>2</x-m> > > <y-m>0</y-m> > > <z-m>-1.5</z-m> > > </center> > > <axis> > > <x>0</x> > > <y>1</y> > > <z>0</z> > > </axis> > > <!-- > > <condition> > > <less-than> > > > > <property>/ai/models/aircraft/velocities/true-airspeed-kt</pro > >perty> <value>30</value> > > </less-than> > > </condition> > > --> > > </animation> > > > > but the min and max values don't have any effect... the plane > > rotates about the wheels as the speed varies...to the extent > > at 180 knots it's flying backwards and upside down ...very > > amusing first time but now just frustrating... > > > > ...what am I doing wrong in this animation? > > > > TIA > > > > :-D ene > >I haven't looked at animations for AI models but you don't appear >to be specifying an object to rotate. > >I just had a quick look at some of the rotate animations I've >done and I don't use <min>, <max> or <offset> entries as the >inputs are normalised to 1.0, so you do everything via the >factor, scaled to 1.0, and interpolation tables. > >LeeE > I got advised on IRC that if I didn't specify an object it selected the entire model by default....this certainly seems to be the case as the entire model rotates in proportion to the AI models speed....
The effect i'm looking for, is for the tail to rise (to 0 degrees ie normal) once the speed gets above a certain value... but i'm having problems getting the min and max values to take effect. I thought that these would specify the absolute limits of the rotation that the model goes through. I haven't tried interpolation tables as I was cutting and pasting from the spitfire_model.xml, as this seemed a logical and easy to follow set of xml files. Regards :-D ene _________________________________________________________________ Looking for love? Check out XtraMSN Personals http://xtramsn.match.com/match/mt.cfm?pg=channel&tcid=200731 _______________________________________________ Flightgear-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-users
