Difference between revisions of "Parts/Wheel/LandingGear/GearMedium.cfg"

From Kerbal Space Program Wiki
Jump to: navigation, search
m
(Update part config)
Line 1: Line 1:
 
{{Part config|LY-35 Medium Landing Gear|2=PART
 
{{Part config|LY-35 Medium Landing Gear|2=PART
 
{
 
{
name = GearMedium
+
name = GearSmall
 
module = Part
 
module = Part
 
author = Porkjet
 
author = Porkjet
mesh = model.mu
 
 
scale = 1.0
 
scale = 1.0
 
rescaleFactor = 1.0
 
rescaleFactor = 1.0
Line 11: Line 10:
 
entryCost = 4800
 
entryCost = 4800
 
cost = 700
 
cost = 700
category = Utility
+
category = Ground
 
subcategory = 0
 
subcategory = 0
 
title = LY-35 Medium Landing Gear
 
title = LY-35 Medium Landing Gear
Line 17: Line 16:
 
description = High performance retractable landing gear. This bigger version features two large tires to support big and heavy planes. The longer assembly allows for improved ground clearance. //Comes with shock absorber, steering and a built-in spotlights.
 
description = High performance retractable landing gear. This bigger version features two large tires to support big and heavy planes. The longer assembly allows for improved ground clearance. //Comes with shock absorber, steering and a built-in spotlights.
 
attachRules = 1,1,1,1,1
 
attachRules = 1,1,1,1,1
 +
//mass = 0.01
 
mass = 0.25
 
mass = 0.25
 
thermalMassModifier = 4.0  
 
thermalMassModifier = 4.0  
Line 31: Line 31:
 
// PhysicsSignificance = 1 // I think this should have mass
 
// PhysicsSignificance = 1 // I think this should have mass
 
bulkheadProfiles = srf
 
bulkheadProfiles = srf
DRAG_CUBE
+
tags = aero (air aircraft ground plane retract roll takeoff taxi wheel
 +
EFFECTS
 
{
 
{
cube = RETRACTED, 1.34515,0.8165293,0.4764051, 1.34515,0.8154734,0.4764051, 1.255602,0.8251827,0.5392171, 1.255602,0.8000292,0.6835146, 0.4617555,0.5293906,1.089661, 0.4617555,0.2736183,1.809438, 2.980232E-07,-0.06152177,-0.03202891, 0.7565614,0.7683123,2.349208
+
deploy
cube = DEPLOYED, 2.185883,0.8828952,0.6261107, 2.185883,0.8829924,0.6261107, 1.459697,0.7678789,2.439235, 1.459697,0.7622477,2.551643, 1.032085,0.6081987,1.930527, 1.032085,0.505362,2.060562, 3.576279E-07,-1.010557,-0.03277326, 1.057151,2.666383,2.350696
+
{
 +
AUDIO
 +
{
 +
channel = Ship
 +
clip = Squad/Sounds/elev_start
 +
volume = 0 0
 +
volume = 1 0.5
 +
pitch = 0.9
 +
}
 +
AUDIO_LOOP
 +
{
 +
channel = Ship
 +
clip = Squad/Sounds/elev_loop
 +
volume = 0 0
 +
volume = 1 0.5
 +
pitch = 0.65
 +
}
 +
}
 +
deployed
 +
{
 +
AUDIO
 +
{
 +
channel = Ship
 +
clip = Squad/Sounds/elev_stop
 +
volume = 0 0
 +
volume = 1 0.5
 +
pitch = 0.8
 +
}
 +
}
 +
retract
 +
{
 +
AUDIO
 +
{
 +
channel = Ship
 +
clip = Squad/Sounds/elev_stop
 +
volume = 0 0
 +
volume = 1 0.5
 +
pitch = 0.9
 +
}
 +
AUDIO_LOOP
 +
{
 +
channel = Ship
 +
clip = Squad/Sounds/elev_loop
 +
volume = 0 0
 +
volume = 1 0.5
 +
pitch = 0.65
 +
}
 +
}
 +
retracted
 +
{
 +
AUDIO
 +
{
 +
channel = Ship
 +
clip = Squad/Sounds/elev_start
 +
volume = 0 0
 +
volume = 1 0.5
 +
pitch = 0.9
 +
}
 +
}
 
}
 
}
 
MODEL
 
MODEL
 
{
 
{
 
model = Squad/Parts/Wheel/LandingGear/GearMedium
 
model = Squad/Parts/Wheel/LandingGear/GearMedium
scale = 1.25, 1.25, 1.25
+
//scale = 1, 1, 1
 +
}
 +
MODULE
 +
{
 +
name = ModuleWheelBase
 +
 +
wheelColliderTransformName = WheelCollider
 +
wheelTransformName = WheelPivot
 +
 +
wheelType = FREE
 +
 
 +
// setting this to true will override the radius and center parameters
 +
FitWheelColliderToMesh = False
 +
radius = 0.25
 +
center = 0,0.0,0
 +
mass = 0.080
 +
groundHeightOffset = 1.72
 +
 +
TooltipTitle = Retractable Landing Gear
 +
TooltipPrimaryField = Retractable
 +
}
 +
MODULE
 +
{
 +
name = ModuleWheelSuspension
 +
baseModuleIndex = 0
 +
suspensionTransformName = SuspensionPivot
 +
 +
suspensionDistance = 0.2
 +
suspensionOffset = 0.0
 +
targetPosition = 0.0 // 0-1 scalar - determines the 'at rest' position of the wheel along the suspension travel
 +
springRatio = 14
 +
damperRatio = 1.0
 +
// boostRatio = 0.65
 +
}
 +
MODULE
 +
{
 +
name = ModuleWheelSteering
 +
baseModuleIndex = 0
 +
 +
caliperTransformName = SteeringPivot
 +
 +
steeringResponse = 2
 +
steeringCurve
 +
{
 +
key = 0 40
 +
key = 10 9
 +
key = 30 2
 +
}
 +
}
 +
MODULE
 +
{
 +
name = ModuleWheelBrakes
 +
baseModuleIndex = 0
 +
 +
maxBrakeTorque = 8
 +
brakeResponse = 1
 +
 
 +
statusLightModuleIndex = 7
 +
}
 +
MODULE
 +
{
 +
name = ModuleWheelDeployment
 +
baseModuleIndex = 0
 +
 +
animationTrfName = Medium
 +
animationStateName = LandingGearMediumDeploy
 +
deployedPosition = 1
 +
deployTargetTransformName = deployTgt
 +
 +
TsubSys = 1.0
 +
useStandInCollider = True
 +
slaveModules = 8
 +
 +
fxDeploy = deploy
 +
fxRetract = retract
 +
fxDeployed = deployed
 +
fxRetracted = retracted
 
}
 
}
 
MODULE
 
MODULE
 
{
 
{
name = ModuleLandingGear
+
name = FXModuleConstrainPosition // match rotation of the upper scissor link to the steered section
animationName = LandingGearMediumDeploy
+
matchRotation = true
BrakeTorque = 12
+
matchPosition = false
BrakeSpeed = 3
+
CONSTRAINFX
startingState = DEPLOYED
+
{
wheelName = wheel
+
targetName = SteeringPivot
suspensionParentName = WheelRetract
+
moversName = SteeringActuator
statusLightName = Spotlight
+
}
reverseAnimation = true
 
StartDeployed = true
 
 
}
 
}
 
MODULE
 
MODULE
 
{
 
{
name = FXModuleLookAtConstraint
+
name = FXModuleLookAtConstraint // scissor links
 
CONSTRAINLOOKFX
 
CONSTRAINLOOKFX
 
{
 
{
Line 67: Line 200:
 
rotatorsName = link2
 
rotatorsName = link2
 
}
 
}
 +
}
 +
MODULE
 +
{
 +
name = ModuleStatusLight
 +
//lightObjName = StatusLight
 +
lightMeshRendererName = BrakeIndicator
 +
lightMatPropertyName = _EmissiveColor
 +
colorOn = #ff4433
 +
colorOff = #000000
 +
}
 +
MODULE
 +
{
 +
name = ModuleTestSubject
 +
environments = 15
 +
useStaging = False
 +
useEvent = True
 +
}
 +
MODULE
 +
{
 +
name = ModuleLight
 +
lightName = Spotlight
 +
useAnimationDim = True
 +
lightBrightenSpeed = 2.5
 +
lightDimSpeed = 2.5
 +
resourceAmount = 0.02
 +
animationName = LandingGearMediumSpotlight
 +
useResources = True
 +
}
 +
MODULE
 +
{
 +
name = ModuleWheelDamage
 +
baseModuleIndex = 0
 +
 +
stressTolerance = 9000
 +
impactTolerance = 3000
 +
deflectionMagnitude = 10
 +
deflectionSharpness = 2.0
 +
slipMagnitude = 15
 +
slipSharpness = 2.0
 +
explodeMultiplier = 1.0
 +
}
 +
MODULE
 +
{
 +
name = ModuleDragModifier
 +
dragCubeName = Deployed
 +
dragModifier = 2
 +
}
 +
MODULE
 +
{
 +
name = ModuleDragModifier
 +
dragCubeName = Retracted
 +
dragModifier = 0.5
 
}
 
}
 
}
 
}
  
 
}}
 
}}

Revision as of 09:57, 21 October 2016

This is the configuration file for LY-35 Medium Landing Gear.
PART
{
	name = GearSmall
	module = Part
	author = Porkjet
	scale = 1.0
	rescaleFactor = 1.0
	node_attach = 0.00, 0.00, 0.00, 0.0, 1.0, 0.0, 1
	TechRequired = advLanding
	entryCost = 4800
	cost = 700
	category = Ground
	subcategory = 0
	title = LY-35 Medium Landing Gear
	manufacturer = LightYear Tire Company		// it can't all be [C7 Aerospace Division]
	description = High performance retractable landing gear. This bigger version features two large tires to support big and heavy planes. The longer assembly allows for improved ground clearance. //Comes with shock absorber, steering and a built-in spotlights.
	attachRules = 1,1,1,1,1
	//mass = 0.01
	mass = 0.25
	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.9
			}
			AUDIO_LOOP
			{
				channel = Ship
				clip = Squad/Sounds/elev_loop
				volume = 0 0
				volume = 1 0.5
				pitch = 0.65
			}
		}
		deployed
		{
			AUDIO
			{
				channel = Ship
				clip = Squad/Sounds/elev_stop
				volume = 0 0
				volume = 1 0.5
				pitch = 0.8
			}
		}
		retract
		{
			AUDIO
			{
				channel = Ship
				clip = Squad/Sounds/elev_stop
				volume = 0 0
				volume = 1 0.5
				pitch = 0.9
			}
			AUDIO_LOOP
			{
				channel = Ship
				clip = Squad/Sounds/elev_loop
				volume = 0 0
				volume = 1 0.5
				pitch = 0.65
			}
		}
		retracted
		{
			AUDIO
			{
				channel = Ship
				clip = Squad/Sounds/elev_start
				volume = 0 0
				volume = 1 0.5
				pitch = 0.9
			}
		}
	}
	MODEL
	{
		model = Squad/Parts/Wheel/LandingGear/GearMedium
		//scale = 1, 1, 1
	}
	MODULE
	{
		name = ModuleWheelBase
		
		wheelColliderTransformName = WheelCollider		
		wheelTransformName = WheelPivot
		
		wheelType = FREE

		// setting this to true will override the radius and center parameters
		FitWheelColliderToMesh = False		
		radius = 0.25
		center = 0,0.0,0
		mass = 0.080
		groundHeightOffset = 1.72
				
		TooltipTitle = Retractable Landing Gear
		TooltipPrimaryField = Retractable
	}
	MODULE
	{
		name = ModuleWheelSuspension
		baseModuleIndex = 0
		suspensionTransformName = SuspensionPivot
		
		suspensionDistance = 0.2
		suspensionOffset = 0.0
		targetPosition = 0.0		// 0-1 scalar - determines the 'at rest' position of the wheel along the suspension travel	
		springRatio = 14
		damperRatio = 1.0
		// boostRatio = 0.65
	}	
	MODULE
	{
		name = ModuleWheelSteering
		baseModuleIndex = 0
		
		caliperTransformName = SteeringPivot
		
		steeringResponse = 2
		steeringCurve
		{
			key = 0 40
			key = 10 9
			key = 30 2
		}
	}
	MODULE
	{
		name = ModuleWheelBrakes
		baseModuleIndex = 0
		
		maxBrakeTorque = 8
		brakeResponse = 1

		statusLightModuleIndex = 7
	}
	MODULE
	{
		name = ModuleWheelDeployment
		baseModuleIndex = 0
		
		animationTrfName = Medium
		animationStateName = LandingGearMediumDeploy
		deployedPosition = 1
		deployTargetTransformName = deployTgt
		
		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 = SteeringPivot
			moversName = SteeringActuator
		}
	}
	MODULE
	{
		name = FXModuleLookAtConstraint			// scissor links
		CONSTRAINLOOKFX
		{
			targetName = anchor2
			rotatorsName = link1
		}
		CONSTRAINLOOKFX
		{
			targetName = anchor1
			rotatorsName = link2
		}
	}
	MODULE
	{
		name = ModuleStatusLight		
		//lightObjName = StatusLight
		lightMeshRendererName = BrakeIndicator
		lightMatPropertyName = _EmissiveColor
		colorOn = #ff4433
		colorOff = #000000
	}
	MODULE
	{
		name = ModuleTestSubject
		environments = 15
		useStaging = False
		useEvent = True
	}
	MODULE
	{
		name = ModuleLight
		lightName = Spotlight
		useAnimationDim = True
		lightBrightenSpeed = 2.5
		lightDimSpeed = 2.5
		resourceAmount = 0.02
		animationName = LandingGearMediumSpotlight
		useResources = True
	}
	MODULE
	{
		name = ModuleWheelDamage
		baseModuleIndex = 0
		
		stressTolerance = 9000
		impactTolerance = 3000
		deflectionMagnitude = 10
		deflectionSharpness = 2.0
		slipMagnitude = 15
		slipSharpness = 2.0
		explodeMultiplier = 1.0
	}
	MODULE
	{
		name = ModuleDragModifier
		dragCubeName = Deployed
		dragModifier = 2
	}
	MODULE
	{
		name = ModuleDragModifier
		dragCubeName = Retracted
		dragModifier = 0.5
	}
}