Skip to content

Commit

Permalink
fix(gear): Fix A380 xml animations for gear retraction/compressions (#…
Browse files Browse the repository at this point in the history
…8503)

fix xml compressions
  • Loading branch information
crocket63 authored Feb 18, 2024
1 parent 5366a56 commit 5897a91
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ spring_exponential_fix = 1; Activates MSFS new spring formula
;15 Airspeed above which gear is damaged, in kias.
;16 The exponential constant for springs
point.0 = 1, 100.0, 0, -15.15, 800, 0, 2.239, 70, 1.2947673642672, 1.20481927710843, 0.5, 17, 15, 0, 0, 0, 4
point.1 = 1, -6, -8.5, -15.5, 1200, 1, 2.356, 8, 1.3790921701152, 1.25, 0.5, 21.1, 19.9, 2, 0, 0, 4
point.2 = 1, -6, 8.5, -15.5, 1200, 2, 2.356, 8, 1.3790921701152, 1.25, 0.5, 21.1, 19.9, 3, 0, 0, 4
point.3 = 1, 3.84, -20.5, -15.3, 1200, 1, 2.356, 0, 1.3146370499424, 1.25, 0.5, 21.1, 19.9, 2, 0, 0, 4
point.4 = 1, 3.84, 20.5, -15.3, 1200, 2, 2.356, 0, 1.3146370499424, 1.25, 0.5, 21.1, 19.9, 3, 0, 0, 4
point.1 = 1, -6, -8.5, -15.4, 1200, 1, 2.356, 8, 1.3790921701152, 1.25, 0.5, 21.1, 19.9, 2, 0, 0, 4
point.2 = 1, -6, 8.5, -15.4, 1200, 2, 2.356, 8, 1.3790921701152, 1.25, 0.5, 21.1, 19.9, 3, 0, 0, 4
point.3 = 1, 3.84, -20.5, -15.25, 1200, 1, 2.356, 0, 1.3146370499424, 1.25, 0.5, 21.1, 19.9, 2, 0, 0, 4
point.4 = 1, 3.84, 20.5, -15.25, 1200, 2, 2.356, 0, 1.3146370499424, 1.25, 0.5, 21.1, 19.9, 3, 0, 0, 4
point.5 = 2, -26, -60, 6, 100, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 1
point.6 = 2, -26, 60, 6, 100, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 1
point.7 = 2, -79.2, 0, 8, 100, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 1
Expand Down
34 changes: 14 additions & 20 deletions ...ybywire-aircraft-a380-842/SimObjects/AirPlanes/FlyByWire_A380_842/model/A380_EXTERIOR.xml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,27 @@
</UseTemplate>

<!-- LH Body Gear -->
<UseTemplate Name="ASOBO_GEAR_Back_Template">
<UseTemplate Name="ASOBO_GT_Anim">
<ANIM_NAME>l_b_gear</ANIM_NAME>
<ID>1</ID>
<ANIM_CODE>(L:A32NX_GEAR_LEFT_POSITION) 0.5 * (A:CONTACT POINT COMPRESSION:1, Percent) 0.5 * +</ANIM_CODE>
</UseTemplate>

<!-- RH Body Gear -->
<UseTemplate Name="ASOBO_GEAR_Back_Template">
<UseTemplate Name="ASOBO_GT_Anim">
<ANIM_NAME>r_b_gear</ANIM_NAME>
<ID>1</ID>
<ANIM_CODE>(L:A32NX_GEAR_RIGHT_POSITION) 0.5 * (A:CONTACT POINT COMPRESSION:2, Percent) 0.5 * +</ANIM_CODE>
</UseTemplate>

<!-- LH Wing Gear-->
<UseTemplate Name="ASOBO_GEAR_Left_Template">
<UseTemplate Name="ASOBO_GT_Anim">
<ANIM_NAME>l_w_gear</ANIM_NAME>
<ID>1</ID>
<ANIM_CODE>(L:A32NX_GEAR_LEFT_POSITION) 0.5 * (A:CONTACT POINT COMPRESSION:3, Percent) 0.5 * + </ANIM_CODE>
</UseTemplate>

<!-- RH Wing Gear-->
<UseTemplate Name="ASOBO_GT_Anim">
<ANIM_NAME>r_w_gear</ANIM_NAME>
<ANIM_CODE>(L:A32NX_GEAR_RIGHT_POSITION) 0.5 * (A:CONTACT POINT COMPRESSION:4, Percent) 0.5 * +</ANIM_CODE>
</UseTemplate>

<!-- LH Body Gear Door-->
Expand All @@ -64,11 +70,6 @@
<ANIM_CODE>(L:A32NX_GEAR_DOOR_LEFT_POSITION)</ANIM_CODE>
</UseTemplate>

<!-- RH Wing Gear-->
<UseTemplate Name="ASOBO_GEAR_Right_Template">
<ANIM_NAME>r_w_gear</ANIM_NAME>
<ID>1</ID>
</UseTemplate>

<!-- RH Body Gear Door-->
<UseTemplate Name="ASOBO_GT_Anim">
Expand Down Expand Up @@ -114,7 +115,7 @@
<ANIM_LENGTH>360</ANIM_LENGTH>
</UseTemplate>

<!-- Body Gear Roation-->
<!-- Body Gear Rotation-->
<UseTemplate Name="ASOBO_GEAR_Center_Tire_Template">
<ANIM_NAME>b_tire_key</ANIM_NAME>
<NODE_ID_STILL>LANDINGGEAR_Back_Wheel1_Still_Right</NODE_ID_STILL>
Expand Down Expand Up @@ -143,14 +144,7 @@
<!-- Compression -->
<UseTemplate Name="ASOBO_GT_Anim">
<ANIM_NAME>c_gear_comp</ANIM_NAME>
<ANIM_CODE>(A:CONTACT POINT COMPRESSION:0, Percent over 100) 100 *</ANIM_CODE>
</UseTemplate>

<!-- EXTENSION AND COMPRESSION -->
<UseTemplate Name="ASOBO_GT_Anim">
<ANIM_NAME>c_gear_comp</ANIM_NAME>
<ANIM_CODE>(A:CONTACT POINT POSITION:0, Percent) (A:CONTACT POINT COMPRESSION:0,
Percent over 100) 100 *</ANIM_CODE>
<ANIM_CODE>(A:CONTACT POINT COMPRESSION:0, Percent)</ANIM_CODE>
</UseTemplate>
</Component>

Expand Down

0 comments on commit 5897a91

Please sign in to comment.