Paul Domingue
Resource contributor
- Messages
- 1,532
- Country

I just spent a week creating what I thought would be a simple animation job and boy was I wrong. I was making linked biplane ailerons. Without any good pictures of how the system worked I had to figure it out from what I had. First trying to find the proper pivot points was a bit confusing until I realized that the attach points between the two ailerons were not as to be expected since they had to be at the same position in an equivalent arc.
Working on the left wings I created the animation for the ailerons with frames 0, 50 and 100 swinging through a 60 degree arc, -30 to +30 (later I had to change that to 50 degrees) and assigned the stock (l_aileron_percent_key) animation to them. The linkage rod was attached to the top aileron and I used the Lookat Constraint to keep it lined up with the bottom aileron attachment mount.
Everything was working great in Max but not so in the sim. The rod was swinging back and forth only lining up at frames 0, 50 and 100. After checking all the usual culprits, axis alignment, scaling and linear rotation and with all that good and no satisfactory results in the sim I tried assigning the (lever_stick_l_r) animation to no avail.
I then decided I would write my own XML code for the linkage rod animation. It still didn't work! I then wrote another little bit of XML code to display a 2d gauge with the numerical readouts of both the (AILERON LEFT DEFLECTION PCT) and my code results side by side.
While watching the animation in the sim and the custom gauge readout I noticed that the linkage rod was actually rotating in the opposite direction as the ailerons.....Ah ha! I went back and assigned the (r_aileron_percent_key) to the left linkage rod then back in the sim but no joy. I was sure that I was on the right track with the opposite aileron control but there was still a problem.
Several times during the week I was tempted to post the problem on the forum but hesitated because I was determined to figure this out for myself. So I'm sitting there moving the joystick side to side and just watching what was happening and about to give up and ask for help when I finally noticed what was happening. The linkage rod was out of phase with the ailerons between 0 and 50 and 50 and 100. Bingo! I went back and animated the ailerons through 50 degrees with 2 degree increments at every 4th frame (25 iterations) and collapsed the linkage rod Lookat Constraint with 25 iterations using the right aileron control for the left linkage rod and it worked perfectly.
I may not be the smartest guy in the world and someone else may have figured this out faster but for you people who are just starting out in modeling this is the type of thing you will run up against. I hope this will save others the work I went through.
Paul
Working on the left wings I created the animation for the ailerons with frames 0, 50 and 100 swinging through a 60 degree arc, -30 to +30 (later I had to change that to 50 degrees) and assigned the stock (l_aileron_percent_key) animation to them. The linkage rod was attached to the top aileron and I used the Lookat Constraint to keep it lined up with the bottom aileron attachment mount.
Everything was working great in Max but not so in the sim. The rod was swinging back and forth only lining up at frames 0, 50 and 100. After checking all the usual culprits, axis alignment, scaling and linear rotation and with all that good and no satisfactory results in the sim I tried assigning the (lever_stick_l_r) animation to no avail.
I then decided I would write my own XML code for the linkage rod animation. It still didn't work! I then wrote another little bit of XML code to display a 2d gauge with the numerical readouts of both the (AILERON LEFT DEFLECTION PCT) and my code results side by side.
While watching the animation in the sim and the custom gauge readout I noticed that the linkage rod was actually rotating in the opposite direction as the ailerons.....Ah ha! I went back and assigned the (r_aileron_percent_key) to the left linkage rod then back in the sim but no joy. I was sure that I was on the right track with the opposite aileron control but there was still a problem.
Several times during the week I was tempted to post the problem on the forum but hesitated because I was determined to figure this out for myself. So I'm sitting there moving the joystick side to side and just watching what was happening and about to give up and ask for help when I finally noticed what was happening. The linkage rod was out of phase with the ailerons between 0 and 50 and 50 and 100. Bingo! I went back and animated the ailerons through 50 degrees with 2 degree increments at every 4th frame (25 iterations) and collapsed the linkage rod Lookat Constraint with 25 iterations using the right aileron control for the left linkage rod and it worked perfectly.
I may not be the smartest guy in the world and someone else may have figured this out faster but for you people who are just starting out in modeling this is the type of thing you will run up against. I hope this will save others the work I went through.
Paul




