<?xml version="1.0"?>

<PropertyList>

<!--

	That code gotta be puttet somethere in craft model file or file of panel of it.
	Change path and set offset as needed.

	<model>
		<path>Aircraft/MiG-15/Models/Instruments/Radiocompass/MiG-15bis-Radiocompass.xml</path>
		<offsets>
			<x-m>0.0</x-m>
			<y-m>0.0</y-m>
			<z-m>0.0</z-m>
			<pitch-deg>0.0</pitch-deg>
		</offsets>
	</model>

-->

	<path>MiG-15bis-Radiocompass.ac</path> 

      <effect>
            <inherits-from>Effects/model-transparent</inherits-from>
            <object-name>RC_Glass</object-name>
      </effect>

	<animation>
		<type>material</type>
		<object-name>RC_Needle</object-name>
		<object-name>RC_Backplate</object-name>
		<object-name>RC_Foreplate</object-name>
  		<emission>
			<factor-prop>fdm/jsbsim/systems/radiocompass/lamp</factor-prop>
			<red>0.222</red>
			<green>0.212</green>
			<blue>0.212</blue>
		</emission>
	</animation>

<!--

	<animation>
		<type>material</type>
		<object-name>RC_Needle</object-name>
		<object-name>RC_Backplate</object-name>
		<object-name>RC_Foreplate</object-name>
		<object-name>RC_Bezel</object-name>
  		<emission>
			<factor-prop>systems/light/canopy-lamps-norm</factor-prop>
			<red>0.777</red>
			<green>0.700</green>
			<blue>0.700</blue>
		</emission>
		<condition>
			<equals>
				<property>systems/light/use-canopy-lamps</property>
				<value>1</value>
			</equals>
		</condition>
	</animation>

-->

	<animation>
		<type>rotate</type>
		<object-name>RC_Needle</object-name>
		<property>fdm/jsbsim/systems/radiocompass/degree</property>
		<center>
			<x-m>0</x-m>
			<y-m>0</y-m>
			<z-m>0</z-m>
		</center>  
		<axis>
			<x>-1</x>
			<y>0</y>
			<z>0</z>
		</axis>
	</animation>

</PropertyList> 
