Jump to content
Sign in to follow this  
Johno89

Helicopter gear hatch animation.

Recommended Posts

Hi,

I'm trying to finalize a more realistic landing gear hatch animation for my attack helicopter. Currently, (with rotation only) when in the open state it clips through the main body slightly. To correct this I applied a two stage animation where the hatch translates downwards first then rotates. In bulldozer the animation works fine, but I can only make it work when the hatch begins in the closed state. If I try the animation with the hatch starting in the open state, it behaves erratically.

I've attached my model.cfg. If requested i can provide a video to better explain my problem. Thanks in advance for your help and time in this matter.

class CfgSkeletons
{
class Default
{
	isDiscrete = 1;
	skeletonInherit = "";
	skeletonBones[] = {};
};
class project_Heli_01_skeleton: Default
{
	skeletonInherit="";
	isDiscrete=0;
	skeletonBones[]=
	{
//front left gear
		"fl_gear_h1",""
	};
};
};
class Translation; 
class Rotation;
class CfgModels
{
class Default
{
	sectionsInherit="";
	sections[] = {};
	skeletonName = "";
};
class project_Heli_01: Default
{
	skeletonName="project_Heli_01_skeleton";
	sectionsInherit="";
	sections[]=
	{

	};
	class Animations
	{
//front left gear
		class fl_gear_h1_1pass
		{ 
               type="translation"; 
               initPhase=1; 
               source = "altsurface"; 
               sourceAddress = "clamp"; 
               selection="fl_gear_h1"; 
               begin="fl_h1_Start"; 
               end="fl_h1_End"; 
               memory=1;  
               minValue=0; 
               maxValue=1; 
               offset0=0; 
               offset1=0.23; 
           };	
		class fl_gear_h1_2pass: fl_gear_h1_1pass 
		{
			type="rotation";
			source="altsurface";
			selection="fl_gear_h1";
			axis="fl_gear_h1_axis";
			memory=1;
			minValue=1;
			maxValue=2;
			angle0=0;
			angle1=1.8;
		};
	};
};
};

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  

×