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</property> > <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</property> > <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 > > _________________________________________________________________ > Discover fun and games at @ http://xtramsn.co.nz/kids > > > > _______________________________________________ > Flightgear-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/flightgear-users >
What you have will rise from 0 up to 13 as the airspeed rises from -1 up to 12, then stay at 13 as the airspeed keeps on rising. To fix this, make factor 1/n where n is the airspeed that you want the rotation to be 13. You probably also want offset to be 0, but I'm not sure exactly what you are doing. Think of it as a graph of Y=aX+b Y is your rotation, X is the airspeed, b is the offset, and a is the factor. It might help to actually draw the graph. Josh _______________________________________________ Flightgear-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-users
