Erik Hofman wrote:

Matevz Jekovec wrote:

Guys, I played today with my j22.xml model wrapper. Can't we use <equal> sentence in situations other than <type>select</type>? I wanted to do that wheels don't spin when in the air (or slowly) and normally do when on the ground:
<!-- NOSEGEAR SPIN: -->
<!-- on the ground -->
<animation>
<type>spin</type>
<object-name>Nosegear</object-name>
<property>/velocities/uBody-fps</property>
<factor>-1.5</factor>
<center>
<x-m>-5.441</x-m>
<y-m>0.0</y-m>
<z-m>-1.648</z-m>
</center>
<axis>
<x>0.0</x>
<y>1.0</y>
<z>0.0</z>
</axis>
<condition>
<not>
<equals>
<property>/gear/gear/compression-norm</property>
<value>0.0</value>
</equals>


I think you don't need to define equals and value.
BTW. There is a value called wow (weight on wheel) which is probably better suited for this.


Erik

Yeah, I found it later today. AFAIK it's true when on ground and false when airborne. I'll try it ...



- Matevz



_______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to