Jump to content
Sign in to follow this  
nzdfcrash

Variable Geometry Wings and Flap Animations

Recommended Posts

With such aircraft as the F111C which has sweeping wings which animation is like this in the model config for the wings to sweep I am wondering how i would go about adding flap animations in without leaving the flaps disconnected from the swept wings anim when activated or if there is a way to disable flaps after a certain speed to get around this?

			class right_wing
		{
     				type = "rotation";
     				source = "Speed";
     				selection = "right_wing";
			axis = "axis_right_wing";
     				memory = 1; 
     				sourceAddress = "clamp";
     				minValue = 55;               
     				maxValue = 125;           
     				angle0 =0;
     				angle1 = rad +55;         
 			};
 			class left_wing : right_wing
		{
     				selection = "left_wing";
			axis = "axis_left_wing";
			angle0 =0;
			angle1 = rad -55;
 			};

Share this post


Link to post
Share on other sites

The trick is with the skeleton definition, and the axis points for the flaps will likely have to be in the Resolution LOD, not the Memory LOD.

Whats your skeleton?

We can tweak it there.

Share this post


Link to post
Share on other sites

Heres the skeleton

class CfgSkeletons 
{ 
class anzac_adf_f111_hvy_skel 
{
	isDiscrete = 1;
	skeletonInherit = "";
	skeletonBones[] = {	"fold_gear_F", "", 
						"roll_wheel_F", "fold_gear_F", 
						"fold_gear_R", "", 
						"roll_wheel_R", "fold_gear_R", 
						"fold_gear_L", "", 
						"roll_wheel_L", "fold_gear_L",
							"mgcenter", "",
						"gearflapfl", "",
						"gearflapfr", "", 
						"right_wing", "",
						"left_wing", "",  
						"gearflapmf", "", 
						"gearflapmr", "",
						"alt",
						"",
						"alt2",
						"",
						"nm_alt",
						"",
						"nm_alt2",
						"",
						"mph",
						"",
						"mph2",
						"",
						"vert_speed",
						"",
						"vert_speed2",
						"",
						"rpm",
						"",
						"rpm2",
						"",
						"horizont_dive",
						"",
						"horizont",
						"horizont_dive",
						"horizont2_dive",
						"",
						"horizont2",
						"horizont2_dive",
						"kompas",
						"",
						"kompas2",
						"",
						"hodinova",
						"",
						"hodinova2",
						"",
						"minutova",
						"",
						"minutova2",
						"",
		                                "myplane_y","",
		                                "myplane_x","myplane_y",
		                                "myplane_dir","myplane_x",
		                                "myplane","myplane_dir",
						"",
		                                "target1_y","",
		                                "target1_x","target1_y",
		                                "target1_dir","target1_x",
		                                "target1","target1_dir",
						"",
		                                "target2_y","",
		                                "target2_x","target2_y",
		                                "target2_dir","target2_x",
		                                "target2","target2_dir",
						"",
		                                "target3_y","", 
	                           	        "target3_x","target3_y",
		                                "target3_dir","target3_x",
		                                "target3","target3_dir",
						"",
		                                "target4_y","",
		                                "target4_x","target4_y",
		                                "target4_dir","target4_x",
		                                "target4","target4_dir",
						"sensors_turret",
						"",
						"sensors",
						"sensors_turret",
						"horizont_dive",
						"",
						"horizont_dive2",
						"",
						"aileron_L", "", 
						"aileron_R", "", 
						"flap_L", "", 
						"flap_R", "", 
						"eng", "",
						"elev_R", "", 
						"elev_L", "",
						"ABSwitch", "", 
						"rudder", ""	
	};
};
};

Edited by NZDF CRASH

Share this post


Link to post
Share on other sites

Suspect if you move the flaps and aileron

...

...

"right_wing", "",

"left_wing", "",

"aileron_L", "left_wing",

"aileron_R", "right_wing",

"flap_L", "left_wing",

"flap_R", "right_wing",

...

...

Also, as mentioned you will likely have to place the axis points for the ailerons and flaps in a Resolution LOD, (likely the first is fine) instead of the Memory LOD.

In your animation definition you may have to change/add this;

....

selection = "xxxx";

axis = "xxxxxxx";

memory = 0;

....

See how that goes.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×