Im trying to create an XML effect that will add a oscillating flexing effect on the wing to allow it to flex up and down while taxing (which is realistic for the 737SG im modelling right now). there is a slight problem with the code right now.
here is where it stands as of now
The first section was made for this project by Jakob at Project Opensky, then
what I added in was this equation -0.09(10-x)^2+10 (except written step by step since I cant write a stacked XML Equation) where the current speed of the aircraft is X. Then the resulting number is multiplied by the number that the oscillation code produced. Between 0-20 knts will result in a positive number and thus movement in the wing. above 20 knts will result in negative number and keyframe animation should be stuck at 0.
But the issue is that the animation is playing as if only this code exists
I added the zero before each step to make sure to clear out the number that was in the previous step but it didn't work. is there anything I am missing that would fix the issue here.
Thanks in advance
here is where it stands as of now
Code:
<part>
<name>POS_FLEXWING</name>
<animation>
<parameter>
<code>
40
(>L:Strength_of_Oscillation,number)
0
-0.5 (P:ABSOLUTE TIME,seconds) 1 % + 0.5 / pi * sin (L:Strength_of_Oscillation,number) * 50 +
(>L:ENGStepOscillate,number)
0
10 (:AIRSPEED TRUE,knot) -
(>L:ENGStep1,number)
0
(L:ENGStep1,number) (L:ENGStep1,number) *
(>L:ENGStep2,number)
0
-0.09 (L:ENGStep2,number) *
(>L:ENGStep3,number)
0
(L:ENGStep3,number) 10 +
(>L:ENGStep4,number)
0
(L:ENGStepOscillate,number) (L:ENGStep4,number) *
</code>
</parameter>
</animation>
</part>
The first section was made for this project by Jakob at Project Opensky, then
what I added in was this equation -0.09(10-x)^2+10 (except written step by step since I cant write a stacked XML Equation) where the current speed of the aircraft is X. Then the resulting number is multiplied by the number that the oscillation code produced. Between 0-20 knts will result in a positive number and thus movement in the wing. above 20 knts will result in negative number and keyframe animation should be stuck at 0.
But the issue is that the animation is playing as if only this code exists
Code:
40
(>L:Strength_of_Oscillation,number)
0
-0.5 (P:ABSOLUTE TIME,seconds) 1 % + 0.5 / pi * sin (L:Strength_of_Oscillation,number) * 50 +
I added the zero before each step to make sure to clear out the number that was in the previous step but it didn't work. is there anything I am missing that would fix the issue here.
Thanks in advance

