PART
{
	name = x1sidegear
	module = Part
	author = blackheart612
	scale = 1.0
	rescaleFactor = 1.0
	mirrorRefAxis = 0, 0, 1
	node_attach = 0.00, 0.00, 0.00, 1.0, 90.0, 0.0, 1
	TechRequired = landing
	entryCost = 3800
	cost = 200
	category = Ground
	subcategory = 0
	title = KS-X1 Assymetric Landing Gear
	manufacturer = Kerbal Standard
	description = The KS-X1 Assymetric Landing Gears offers a great way of stowing landing gear smoothly into the fuselage. If there was ever a need to hide landing gears from the sight of the kerbals, this is the way to do it.
	attachRules = 1,1,1,1,1
	mass = 0.035
	thermalMassModifier = 4.0 
	// heatConductivity = 0.06
	emissiveConstant = 0.95
	dragModelType = default
	maximum_drag = 0.3
	minimum_drag = 0.2
	angularDrag = 1
	maxTemp = 2600 
	crashTolerance = 50
	breakingForce = 50
	breakingTorque = 50
	// PhysicsSignificance = 1		// I think this should have mass
	bulkheadProfiles = srf
	tags = aero (air aircraft ground plane retract roll takeoff taxi wheel
	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
			}
		}
	}
	MODEL
	{
		model = AirplanePlus/Parts/Wheel/sharedgear/x1sidegear
	}
	MODULE
	{
		name = ModuleWheelBase
		
		wheelColliderTransformName = WheelCollider		
		wheelTransformName = wheel
		
		wheelType = FREE

		// setting this to true will override the radius and center parameters
		FitWheelColliderToMesh = false	
		radius = 0.26
		center = 0,0,0
		mass = 0.014
		groundHeightOffset = 1.5
				
		TooltipTitle = Retractable Landing Gear
		TooltipPrimaryField = Retractable, Diagonal
	}
	MODULE
	{
		name = ModuleWheelSuspension
		baseModuleIndex = 0
		//suspensionTransformName = suspensionpivot
		
		suspensionDistance = 0.1
		suspensionOffset = 0.0
		targetPosition = 0.0
		springRatio = 25
		damperRatio = 1.0
		boostRatio = 0.75
		useAutoBoost = False
	}
	MODULE
	{
		name = ModuleWheelBrakes
		baseModuleIndex = 0
		
		maxBrakeTorque = 6
		brakeResponse = 1
		
		//statusLightModuleIndex = 6
	}
	//MODULE
	{
		name = ModuleStatusLight		
		//lightObjName = BrakeIndicator
		lightMeshRendererName = BrakeIndicator
		lightMatPropertyName = _EmissiveColor
		colorOn = #ff4433
		colorOff = #000000
	}
	MODULE
	{
		name = ModuleWheelDeployment
		baseModuleIndex = 0
		
		animationTrfName = x1sidegear
		animationStateName = x1sidegear
		deployedPosition = 1
		deployTargetTransformName = reference
		
		TsubSys = 1.0
		useStandInCollider = True
		slaveModules = 8
		
		fxDeploy = deploy
		fxRetract = retract
		fxDeployed = deployed
		fxRetracted = retracted
	}
	//MODULE
	{
		name = FXModuleConstrainPosition		// match rotation of the upper scissor link to the steered section
		matchRotation = true
		matchPosition = false
		CONSTRAINFX
		{
			targetName = damper
			moversName = steeringactuator
		}
	}
	//MODULE
	{
		name = FXModuleLookAtConstraint
		CONSTRAINLOOKFX		//dragbrace
		{
			targetName = dragbraceU
			rotatorsName = dragbraceL
		}
		CONSTRAINLOOKFX
		{
			targetName = dragbraceL
			rotatorsName = dragbraceU
		}
	}
	MODULE
	{
		name = ModuleTestSubject
		environments = 15
		useStaging = False
		useEvent = True
	}
	//MODULE
	{
		name = ModuleLight
		lightName = Spotlight
		useAnimationDim = True
		lightBrightenSpeed = 2.5
		lightDimSpeed = 2.5
		resourceAmount = 0.01
		animationName = b29lightdeploy
		useResources = True
	}
	MODULE
	{
		name = ModuleWheelDamage
		baseModuleIndex = 0
		
		stressTolerance = 2500
		impactTolerance = 1500
		deflectionMagnitude = 10
		deflectionSharpness = 2.0
		slipMagnitude = 15
		slipSharpness = 2.0
		explodeMultiplier = 1.0
	}
	//MODULE
	{
		name = ModuleWheelSteering
		baseModuleIndex = 0
		
		caliperTransformName = steeringpivot
		
		steeringResponse = 3		
		steeringCurve
		{
			key = 0 30
			key = 10 9
			key = 30 2
		}
	}
	MODULE
	{
		name = ModuleDragModifier
		dragCubeName = Deployed
		dragModifier = 2
	}
	MODULE
	{
		name = ModuleDragModifier
		dragCubeName = Retracted
		dragModifier = 0.5
	}
}
