Jump to content
Sign in to follow this  
DrSova

damper

Recommended Posts

Make sure the axis memory points are at the center of the wheels' axles in memory LOD

Share this post


Link to post
Share on other sites

Is the model.cfg coded correctly?

Here it is

class CfgSkeletons
{
	class Default
	{
		isDiscrete = 1;
		skeletonInherit = "";
		skeletonBones[] = {};
	};
	class Kraz_skeleton : Default
	{
		SkeletonBones[]=
		{
		"wheel_1_1_damper_land","",
		"wheel_1_2_damper_land","",
		"wheel_1_3_damper_land","",
		"wheel_2_1_damper_land","",
		"wheel_2_2_damper_land","",
		"wheel_2_3_damper_land","",
		"wheel_1_1_damper", "wheel_1_1_damper_land",
		"wheel_1_2_damper", "wheel_1_2_damper_land",
		"wheel_1_3_damper", "wheel_1_3_damper_land",
		"wheel_2_1_damper", "wheel_2_1_damper_land",
		"wheel_2_2_damper", "wheel_2_2_damper_land",
		"wheel_2_3_damper", "wheel_2_3_damper_land",
		"wheel_1_1", "wheel_1_1_damper",
		"wheel_1_2", "wheel_1_2_damper",
		"wheel_1_3", "wheel_1_3_damper",
		"wheel_2_1", "wheel_2_1_damper",
		"wheel_2_2", "wheel_2_2_damper",
		"wheel_2_3", "wheel_2_3_damper",
		};
	};
};
class CfgModels
{
	class Default
	{
		sections[] = {};
		sectionsInherit="";
		skeletonName = "";
	};
	class 258 : Default
	{
		skeletonName="Kraz_skeleton";
		sections[]=
		{
		"light_l",
		"light_r",
		"BackLights",
		"BrakeLights"
		};
		class Animations
		{
			class wheel_1_1
			{
				type="rotation";
				angle0=0;
				angle1="rad 360";
				axis="wheel_1_1_axis";
				memory=1;
				minValue=0;
				maxValue=1;
				minPhase=0;
				maxPhase=1;
				source="wheel";
				sourceAddress="loop";
				selection="wheel_1_1";
			};
			class wheel_1_2 : wheel_1_1 {
			axis="wheel_1_2_axis";
			selection="wheel_1_2";
			};
			class wheel_1_3 : wheel_1_1 {
			axis="wheel_1_3_axis";
			selection="wheel_1_3";
			};
			class wheel_2_1 : wheel_1_1 {
			axis="wheel_2_1_axis";
			selection="wheel_2_1";
			};
			class wheel_2_2 : wheel_1_1 {
			axis="wheel_2_2_axis";
			selection="wheel_2_2";
			};
			class wheel_2_3 : wheel_1_1 {
			axis="wheel_2_3_axis";
			selection="wheel_2_3";
			};
			class Steering_1_1
			{
				type="rotation";
				angle0="rad 35";
				angle1="rad -35";
				axis="wheel_1_1_steering";
				memory=0;
				minValue=-1;
				maxValue=1;
				minPhase=-1;
				maxPhase=1;
				source="drivingWheel";
				sourceAddress=0;
				selection="wheel_1_1";
			};
			class Steering_2_1 : Steering_1_1
			{
				axis="wheel_2_1_steering";
				selection="wheel_2_1";
			};
			class wheel_1_1_Damper
			{
				type="translation";
				offset0=1;
				offset1=-1;
				axis="damper_axis";
				memory=1;
				minValue=0;
				maxValue=1;
				minPhase=0;
				maxPhase=1;
				source="damper";
				sourceAddress=0;
				selection="wheel_1_1_damper_land";
			};
			class wheel_1_3_Damper : wheel_1_1_Damper
			{
				selection="wheel_1_3_damper_land";
			};
			class wheel_2_1_Damper : wheel_1_1_Damper
			{
				selection="wheel_2_1_damper_land";
			};
			class wheel_2_3_Damper : wheel_1_1_Damper
			{
				selection="wheel_2_3_damper_land";
			};

		};
	};
};

Share this post


Link to post
Share on other sites

Here is a model that I'm working on 

 

https://gyazo.com/4a8674152d5613379e64bd42eea6f15e

 

Make sure that you have the Wheel_1_1_damper, Wheel_1_1_hide, Wheel_1_1_steering in your Custom LOD

 

Then make sure that on the memory points that they are correctly placed on the model

 

https://gyazo.com/361322d5654321026facaf13f228d828

https://gyazo.com/73441309623c8744435d84a4a7d2e165

 

The if the tires are going through the ground then lower the Land Contact LOD just a bit

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  

×