PART
{
//Basic
	name = O_landing_gear
	module = Part
	author = ClimberFX
	//mesh = O_landing_gear.mu
	MODEL
	{
		model = Omicron/Parts/O_landing_gear
//		rotation = 0, 0, 0
	}
	rescaleFactor = 1.25
	tags = climberfx omicron gear landing legs wheels

//Node
	// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
	attachRules = 0,1,0,0,0
	node_attach = 0, 0, 0, 0, 1, 0, 0
	
//Cost & RD
	TechRequired = advLanding
	entryCost = 0
	cost = 500

//Description
	category = Ground
	subcategory = 0
	title = Omicron Landing Gear
	manufacturer = ClimberFX
	description = And Finaly some thing we can land off. Here the Omicron Landing Gears, solid, and with good damping to help on those hard landings...

//Drag
	dragModelType = default
	maximum_drag = 0.02
	minimum_drag = 0.01
	angularDrag = 1

//Physical
	mass = 0.035
	crashTolerance = 100
	breakingForce = 250
	breakingTorque = 250
	maxTemp = 3200
	fuelCrossFeed = False
	bulkheadProfiles = srf
	PhysicsSignificance = 1

	emissiveConstant = 0.8
	heatConductivity = 0.45
	
//Effects
	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 = ModuleTestSubject
		environments = 15
		useStaging = False
		useEvent = True
	}

	MODULE
	{
		name = ModuleDragModifier
		dragCubeName = Deployed
		dragModifier = 2
	}

	MODULE
	{
		name = ModuleDragModifier
		dragCubeName = Retracted
		dragModifier = 0.25
	}

//KSP Wheel Modules	

	MODULE
	{
		name = KSPWheelBase
		wheelColliderName = WheelCollider
		wheelColliderOffset = 0.08
		wheelRadius = 0.12
		wheelMass = 0.25
		suspensionTravel = 0.12
		suspensionTarget = 0
		loadRating = 5
		minLoadRating = 1
		maxLoadRating = 25
		maxSpeed = 250

	}

	MODULE
	{
		name = KSPWheelRotation
		wheelMeshName = WheelPivot
		rotationAxis = 1,0,0
	}

	MODULE
	{
		name = KSPWheelSuspension
		suspensionName = SuspensionPivot
		suspensionOffset = -0.10
		suspensionAxis = 0,1,0
	}

	MODULE
	{
		name = KSPWheelSteering
		steeringName = SteeringPivot
		maxSteeringAngle = 30
		steeringAxis = 0, 1, 0
		steeringResponse = 2
	}

	MODULE
	{
		name = KSPWheelMotor
		maxMotorTorque = 1
		maxRPM = 5000
		gearRatio = 2
	}

	MODULE
	{
		name = KSPWheelBrakes
		maxBrakeTorque = 1
		brakeResponse = 1
	}

	MODULE
	{
		name = KSPWheelDeployment
		animationName = LandingGearDeploy
		tempColliderName = deployTgt
		tempColliderOffset = 0.10
		retractEffect = retract
		retractedEffect = retracted
		deployEffect = deploy
		deployedEffect = deployed
	}

	MODULE
	{
		name = KSPWheelDamage
		wheelColliderName = WheelCollider
		impactTolerance = 100
		wheelName = pneu_interno pneu_externo
		bustedWheelName = pneu_interno_crash pneu_externo_crash
	}

	MODULE
	{
		name = KSPWheelSounds
		motorEffect = WheelEffect
		runningEffect = WheelEffect
		motorEffect = MotorEffect
		latSlipEffect = SlipEffect
	}

	MODULE
	{
		name = KSPWheelDustEffects
	}

	MODULE	
	{
		name = FXModuleLookAtConstraint
		CONSTRAINLOOKFX
		{
			targetName = base_levanta_inf
			rotatorsName = bump_levanta
		}
		CONSTRAINLOOKFX
		{
			targetName = base_levanta_sub
			rotatorsName = bump_levanta_sub
		}
		CONSTRAINLOOKFX
		{
			targetName = base_inf_dir
			rotatorsName = bump_direcao
		}
		CONSTRAINLOOKFX
		{
			targetName = base_sup_dir
			rotatorsName = bump_direcao_sub
		}
	}

	MODULE
	{
		name = ModuleDepthMask
		maskTransform = LandingGearHole
	}
}