// wos-aggregate-skid.cfg v1.1.0.0
// Wernher's Old Stuff (WOS)
// created: 
// updated: 03 Nov 2022

// this file: CC BY-SA 4.0 by zer0Kerbal
// 

PART
{
	name = wos-aggregate-skid
	// AggregateSkid
	module = Part
	author = TD and zer0Kerbal

	MODEL
	{
		model = WernhersOldStuff/Assets/Skids
	}
	scale = 1.0
	rescaleFactor = 1.0
	bulkheadProfiles = srf

	node_attach = 0.00, 0.00, 0.00, 0.0, 1.0, 0.0, 1
	attachRules = 1,1,1,1,1,0,0,0

	TechRequired = landing
	entryCost = 3800
	cost = 600
	category = Ground
	subcategory = 0

	title = #WOS-aggregate-skid-titl
	manufacturer = #WOS-Agency-titl
	description = #WOS-aggregate-skid-desc
	tags = #autoLOC_500971 // aero (air aircraft ground plane retract roll takeoff taxi wheel

	mass = 0.045
	//mass = 0.01
	// PhysicsSignificance = 1		// I think this should have mass

	dragModelType = default
	maximum_drag = 0.3
	minimum_drag = 0.2
	angularDrag = 1

	maxTemp = 2600 
	thermalMassModifier = 4.0 
	// heatConductivity = 0.06
	emissiveConstant = 0.95

	crashTolerance = 50
	breakingForce = 50
	breakingTorque = 50

	EFFECTS
	{
		deploy
		{
			AUDIO
			{
				channel = Ship
				clip = Squad/Sounds/elev_start
				volume = 0 0
				volume = 1 0.5
				pitch = 0.95
			}
			AUDIO_LOOP
			{
				channel = Ship
				clip = Squad/Sounds/elev_loop
				volume = 0 0
				volume = 1 0.5
				pitch = 0.75
			}
		}
		deployed
		{
			AUDIO
			{
				channel = Ship
				clip = Squad/Sounds/elev_stop
				volume = 0 0
				volume = 1 0.5
				pitch = 0.75
			}
		}
		retract
		{
			AUDIO
			{
				channel = Ship
				clip = Squad/Sounds/elev_stop
				volume = 0 0
				volume = 1 0.5
				pitch = 1.0
			}
			AUDIO_LOOP
			{
				channel = Ship
				clip = Squad/Sounds/elev_loop
				volume = 0 0
				volume = 1 0.5
				pitch = 0.75
			}
		}
		retracted
		{
			AUDIO
			{
				channel = Ship
				clip = Squad/Sounds/elev_start
				volume = 0 0
				volume = 1 0.5
				pitch = 0.95
			}
		}
	}

	MODULE
	{
		name = ModuleWheelBase
		
		wheelColliderTransformName = Wheel	
		wheelTransformName = Wheel
		
		wheelType = FREE

		// setting this to true will override the radius and center parameters
		FitWheelColliderToMesh = False		
		radius = 0.08
		center = 0,0,0
		mass = 0.040
		groundHeightOffset = 0.5
				
		TooltipTitle = #autoLOC_502079 // Retractable Landing Gear
		TooltipPrimaryField = #autoLOC_6004046 // Retractable
	}

	MODULE
	{
		name = ModuleWheelSuspension
		baseModuleIndex = 0
		suspensionTransformName = Skid
		maximumLoad = 60.0
		suspensionDistance = 0.42
		suspensionOffset = 0.0
		targetPosition = 0.0			
		springRatio = 52
		damperRatio = 2.0
	}
	
	MODULE
	{
		name = ModuleWheelDeployment
		baseModuleIndex = 0
		
		animationTrfName = A9etc
		animationStateName = SkidDeploy
		deployedPosition = 1
		deployTargetTransformName = Skid.end
		
		TsubSys = 1.0
		useStandInCollider = True
		slaveModules = 8
		
		fxDeploy = deploy
		fxRetract = retract
		fxDeployed = deployed
		fxRetracted = retracted
	}
}