Hi
I'm working on getting a 3d oil pressure gauge to work and am having a bit of
xml problems..
The fulcrum of the needle needs to be at the base of the gauge but I can only
get it to rotate around the center.
I tried these things in the xml file: oil-pressure.xml (which I made for the
gauge).
first....
<animation>
<type>rotate</type>
<object-name>needle</object-name>
<property>/engines/engine[0]/oil-pressure-psi</property>
<factor>0.66</factor>
<transformations>
<transformation>
<type>y-shift</type>
<offset>-10.0</offset>
</transformation>
</transformations>
that didn't work so I tried this
<animation>
<type>rotate</type>
<object-name>needle</object-name>
<property>/engines/engine[0]/oil-pressure-psi</property>
<factor>0.66</factor>
<offsets>
<x-m>0.0</x-m>
<y-m>-10.0</y-m>
<z-m>0.0</z-m>
</offsets>
also tried this...
<animation>
<type>rotate</type>
<object-name>needle</object-name>
<property>/engines/engine[0]/oil-pressure-psi</property>
<factor>0.66</factor>
<y-offset-m type="double">-10.00</y-offset-m>
Non of those worked.
Not sure if the offset for the needle fulcrum will be -10.0 or not, but have
to start somewhere to see where it moves too.
Anyone know how to shift the fulcrum so the darned* needle rotates around the
bottom tip of it..?
*(maybe everyone doesn't want to hear me cursing!)
TIA :-)
WillyB
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel