SCASM Animations
Wheelsteer
Stock Animation

Template     Original SCA Code     Edited SCA Code

Wheel steering is applied to the nose gear or tail wheel on an aircraft. In either case, the motion is tied directly to rudder deflection.

VAR - hex offset to the variable rudder deflection.

; Part: PARTNAME
:PARTLABEL
Transform_Mat(
     0.000000 0.000000 0.000000
     1.000000 0.000000 0.000000
     0.000000 1.000000 0.000000
     0.000000 0.000000 1.000000
     )
TransformCall( :DrawPARTNAME  0  0  0  0.000000 0x00  0.000000 0x00  0.000000 VAR   )
TransformEnd
Return

:DrawPARTNAME
SetMaterial(  m  t  )
DrawTriList( index  ... vertex indices ...  )
Call32( :CHILDPart1 )
     ..........
Call32( :CHILDPartn )
Return

Original SCA Code     Template     Edited SCA Code

This is the original object source code for c_wheelsteer generated by FSDS Pro v2.33 from fxpaint.fsc.

; Part: c_wheelsteer
:Part000086
Transform_Mat(
    0.000000 -3.901440 0.000000
    1.000000 0.000000 0.000000
    0.000000 1.000000 0.000000
    0.000000 0.000000 1.000000
    )
SetMaterial( 0 -1 )
DrawTriList( 1181
    0 1 2
    0 2 3
    4 5 6
    4 6 7
    8 9 10
    8 10 11
    12 13 14
    12 14 15
    16 17 18
    16 18 19
    20 21 22
    20 22 23
    )
Call32( :Part000087 )
TransformEnd
Return

Edited SCA Code     Template     Original SCA Code

This is the edited object source code that produces the animated part c_wheelsteer in fxpaint.mdl.

Note the Call32( ... ) command just before the Return command at the end of this code. This is where the "Child Parts" of the rudder are called. This assures that the animation applied to the rudder is also applied to those parts which use the rudder as a parent part.

; Part: c_wheelsteer
:Part000086
Transform_Mat(
    0.000000 -3.901440 0.000000
    1.000000 0.000000 0.000000
    0.000000 1.000000 0.000000
    0.000000 0.000000 1.000000
    )
TransformCall( :DrawWheelSteer 0 0 0
0.000000 0x00 0.000000 0x00 0.000000 0x78 )
TransformEnd
Return

:DrawWheelSteer
SetMaterial( 0 -1 )
DrawTriList( 1181
    0 1 2
    0 2 3
    4 5 6
    4 6 7
    8 9 10
    8 10 11
    12 13 14
    12 14 15
    16 17 18
    16 18 19
    20 21 22
    20 22 23
    )
Call32( :Part000087 )
Return