Does anyone know how to solve this problem ?
In the part of the code that activates the procedural lights I placed the light position through its relative coordinates (offsets):
- Code: Select all
<model>
<name>procedural-light-gear-white-left</name>
<path>Effects/lights/procedural_light_gear_white.xml</path>
<offsets>
<x-m> -3.08</x-m>
<y-m> -0.21 </y-m>
<z-m> -1.18 </z-m>
</offsets>
</model>
The problem solves simply by using the "model" as an object, or by inserting it into the XML code that moves the leg of the landing gear:
- Code: Select all
<!-- Rotate gear frontal door -->
<animation>
<type>rotate</type>
<object-name>GearFrontalDoor</object-name>
<object-name>procedural-light-gear-white-right</object-name>
<object-name>procedural-light-gear-white-left</object-name>
<property>gear/gear/position-norm</property>
<axis>
<x1-m> -3.00240</x1-m>
<y1-m> 1.0</y1-m>
<z1-m> -1.02906</z1-m>
<x2-m> -3.00240</x2-m>
<y2-m> -1.0</y2-m>
<z2-m> -1.0290</z2-m>
</axis>
<interpolation>
<entry><ind>0.0</ind><dep>90</dep></entry>
<entry><ind>0.25</ind><dep>90</dep></entry>
<entry><ind>0.50</ind><dep>60</dep></entry>
<entry><ind>0.75</ind><dep>30</dep></entry>
<entry><ind>1.0</ind><dep>0</dep></entry>
</interpolation>
</animation>
This is the example: