Loosen up the engine a bit
This commit is contained in:
parent
35ec004c5f
commit
741a659bfc
5 changed files with 1355 additions and 777 deletions
File diff suppressed because it is too large
Load diff
571
Aircraft/ufo/Models/new_ufo.xml
Executable file
571
Aircraft/ufo/Models/new_ufo.xml
Executable file
|
@ -0,0 +1,571 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<PropertyList>
|
||||
|
||||
<path>new_ufo.ac</path>
|
||||
|
||||
<!-- Raindeer 1, right and front -->
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>rfh1</object-name>
|
||||
<object-name>rfl1</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>45.0</factor>
|
||||
<center>
|
||||
<x-m>-6.85</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>1.37</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>rfl1</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>15.0</factor>
|
||||
<center>
|
||||
<x-m>-6.85</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>0.97</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>lfh1</object-name>
|
||||
<object-name>lfl1</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>-45.0</factor>
|
||||
<center>
|
||||
<x-m>-6.85</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>1.37</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>lfl1</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>-15.0</factor>
|
||||
<center>
|
||||
<x-m>-6.85</x-m>
|
||||
<y-m>-0.0</y-m>
|
||||
<z-m>0.97</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>rrh1</object-name>
|
||||
<object-name>rrl1</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>-40.0</factor>
|
||||
<center>
|
||||
<x-m>-5.75</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>1.37</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>rrl1</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>-20.0</factor>
|
||||
<center>
|
||||
<x-m>-5.75</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>0.91</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>lrh1</object-name>
|
||||
<object-name>lrl1</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>40.0</factor>
|
||||
<center>
|
||||
<x-m>-5.75</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>1.37</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>lrl1</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>20.0</factor>
|
||||
<center>
|
||||
<x-m>-5.75</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>0.91</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<!-- Raindeer 2, right and back -->
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>rfh2</object-name>
|
||||
<object-name>rfl2</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>45.0</factor>
|
||||
<center>
|
||||
<x-m>-4.25</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>1.37</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>rfl2</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>15.0</factor>
|
||||
<center>
|
||||
<x-m>-4.25</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>0.97</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>lfh2</object-name>
|
||||
<object-name>lfl2</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>-45.0</factor>
|
||||
<center>
|
||||
<x-m>-4.25</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>1.37</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>lfl2</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>-15.0</factor>
|
||||
<center>
|
||||
<x-m>-4.25</x-m>
|
||||
<y-m>-0.0</y-m>
|
||||
<z-m>0.97</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>rrh2</object-name>
|
||||
<object-name>rrl2</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>-40.0</factor>
|
||||
<center>
|
||||
<x-m>-3.10</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>1.37</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>rrl2</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>-20.0</factor>
|
||||
<center>
|
||||
<x-m>-3.10</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>0.91</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>lrh2</object-name>
|
||||
<object-name>lrl2</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>40.0</factor>
|
||||
<center>
|
||||
<x-m>-3.10</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>1.37</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>lrl2</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>20.0</factor>
|
||||
<center>
|
||||
<x-m>-3.10</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>0.91</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<!-- Raindeer 3, left and back -->
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>rfh3</object-name>
|
||||
<object-name>rfl3</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>45.0</factor>
|
||||
<center>
|
||||
<x-m>-4.75</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>1.37</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>rfl3</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>15.0</factor>
|
||||
<center>
|
||||
<x-m>-4.75</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>0.97</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>lfh3</object-name>
|
||||
<object-name>lfl3</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>-45.0</factor>
|
||||
<center>
|
||||
<x-m>-4.75</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>1.37</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>lfl3</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>-15.0</factor>
|
||||
<center>
|
||||
<x-m>-4.75</x-m>
|
||||
<y-m>-0.0</y-m>
|
||||
<z-m>0.97</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>rrh3</object-name>
|
||||
<object-name>rrl3</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>-40.0</factor>
|
||||
<center>
|
||||
<x-m>-3.60</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>1.37</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>rrl3</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>-20.0</factor>
|
||||
<center>
|
||||
<x-m>-3.60</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>0.91</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>lrh3</object-name>
|
||||
<object-name>lrl3</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>40.0</factor>
|
||||
<center>
|
||||
<x-m>-3.60</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>1.37</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>lrl3</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>20.0</factor>
|
||||
<center>
|
||||
<x-m>-3.60</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>0.91</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<!-- Raindeer 4, left and front -->
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>rfh4</object-name>
|
||||
<object-name>rfl4</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>45.0</factor>
|
||||
<center>
|
||||
<x-m>-7.40</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>1.37</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>rfl4</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>15.0</factor>
|
||||
<center>
|
||||
<x-m>-7.40</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>0.97</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>lfh4</object-name>
|
||||
<object-name>lfl4</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>-45.0</factor>
|
||||
<center>
|
||||
<x-m>-7.40</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>1.37</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>lfl4</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>-15.0</factor>
|
||||
<center>
|
||||
<x-m>-7.40</x-m>
|
||||
<y-m>-0.0</y-m>
|
||||
<z-m>0.97</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>rrh4</object-name>
|
||||
<object-name>rrl4</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>-40.0</factor>
|
||||
<center>
|
||||
<x-m>-6.25</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>1.37</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>rrl4</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>-20.0</factor>
|
||||
<center>
|
||||
<x-m>-6.25</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>0.91</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>lrh4</object-name>
|
||||
<object-name>lrl4</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>40.0</factor>
|
||||
<center>
|
||||
<x-m>-6.25</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>1.37</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>lrl4</object-name>
|
||||
<property>/tmp/walk</property>
|
||||
<factor>20.0</factor>
|
||||
<center>
|
||||
<x-m>-6.25</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>0.91</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
<PropertyList>
|
||||
|
||||
<path>new_ufo.ac</path>
|
||||
<!--
|
||||
<path>ufo.ac</path>
|
||||
|
||||
|
@ -16,4 +15,27 @@
|
|||
</animation>
|
||||
-->
|
||||
|
||||
<path>new_ufo.ac</path>
|
||||
|
||||
<!--
|
||||
<animation>
|
||||
<type>rotate</type>
|
||||
<object-name>rah</object-name>
|
||||
<property>/instrumentation/clock/indicated-sec</property>
|
||||
<offset>157.5</offset>
|
||||
<factor>-30</factor>
|
||||
<mod>67.5</mod>
|
||||
<center>
|
||||
<x-m>-5.72</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>1.34</z-m>
|
||||
</center>
|
||||
<axis>
|
||||
<x>0.0</x>
|
||||
<y>1.0</y>
|
||||
<z>0.0</z>
|
||||
</axis>
|
||||
</animation>
|
||||
-->
|
||||
|
||||
</PropertyList>
|
||||
|
|
19
Aircraft/ufo/new-ufo.nas
Normal file
19
Aircraft/ufo/new-ufo.nas
Normal file
|
@ -0,0 +1,19 @@
|
|||
|
||||
prop = props.globals.getNode("/velocities/airspeed-kt");
|
||||
walkSanta = func {
|
||||
|
||||
# if ( prop.getValue() < 1.0) { interpolate("/tmp/walk", 0, 1); }
|
||||
# else {
|
||||
time = 1-prop.getValue()/8000;
|
||||
interpolate("/tmp/walk",
|
||||
-0.5, time/2,
|
||||
0.5, time, -0.5, time,
|
||||
0.5, time, -0.5, time,
|
||||
0.0, time/2);
|
||||
# }
|
||||
# When we're done, start it again:
|
||||
settimer(walkSanta, 5*time);
|
||||
}
|
||||
|
||||
settimer(walkSanta, 0);
|
||||
print("Done initializing Santa walk");
|
|
@ -31,7 +31,7 @@ October 23 2001 John Check, fgpanels@rockfish.net
|
|||
</panel>
|
||||
|
||||
<model>
|
||||
<path>Aircraft/ufo/Models/ufo.xml</path>
|
||||
<path>Aircraft/ufo/Models/new_ufo.xml</path>
|
||||
</model>
|
||||
|
||||
<!-- New Ufo support code follows below -->
|
||||
|
@ -44,50 +44,16 @@ October 23 2001 John Check, fgpanels@rockfish.net
|
|||
<y-offset-m archive="y">2.07</y-offset-m>
|
||||
</config>
|
||||
</view>
|
||||
|
||||
</sim>
|
||||
|
||||
<!--
|
||||
<input>
|
||||
<keyboard>
|
||||
<key n="360">
|
||||
<name>PageUp</name>
|
||||
<desc>Increase throttle or autopilot autothrottle.</desc>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>/autopilot/control-overrides/throttle</property>
|
||||
<step type="double">0.00225</step>
|
||||
<max type="double">0.045</max>
|
||||
</binding>
|
||||
<mod-shift>
|
||||
<desc>Look front right.</desc>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/sim/current-view/goal-heading-offset-deg</property>
|
||||
<value alias="/sim/view/config/front-right-direction-deg"/>
|
||||
</binding>
|
||||
</mod-shift>
|
||||
</key>
|
||||
<nasal>
|
||||
<new_ufo>
|
||||
<file>Aircraft/ufo/new-ufo.nas</file>
|
||||
</new_ufo>
|
||||
</nasal>
|
||||
|
||||
<key n="361">
|
||||
<name>PageDown</name>
|
||||
<desc>Decrease throttle or autopilot autothrottle.</desc>
|
||||
<binding>
|
||||
<command>property-adjust</command>
|
||||
<property>/autopilot/control-overrides/throttle</property>
|
||||
<step type="double">-0.00225</step>
|
||||
</binding>
|
||||
<mod-shift>
|
||||
<desc>Look back right.</desc>
|
||||
<binding>
|
||||
<command>property-assign</command>
|
||||
<property>/sim/current-view/goal-heading-offset-deg</property>
|
||||
<value alias="/sim/view/config/back-right-direction-deg"/>
|
||||
</binding>
|
||||
</mod-shift>
|
||||
</key>
|
||||
</keyboard>
|
||||
</input>
|
||||
-->
|
||||
<tmp>
|
||||
<walk type="double">0</walk>
|
||||
</tmp>
|
||||
|
||||
</PropertyList>
|
||||
|
|
Loading…
Reference in a new issue