PART
{
	// --- general parameters ---
	name = CJMoonWheel
	module = Part
	author = MajorTom, ColdJ

	// --- asset parameters ---
	MODEL
	{
		model = Space199950/Parts/NewMoonWheel
	}
	scale = 1
	rescaleFactor = 1

	// --- node definitions: Position X, Position Y, Position Z, Up X, Up Y, Up Z
	node_stack_wheel = 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0

	// --- editor parameters ---
	TechRequired  = fieldScience
	entryCost = 5000
	cost = 500
	category = Ground
	subcategory = 0
	title = New Wheel for the Moon Buggy
	manufacturer = CJ Aeronautics
	description = Balloon tyres for an airless Moon, go figure. When in SPH, rotate so that the light part of the nut, or the green on the end of the axle, are pointed at the roof.

	// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
	attachRules = 1,0,1,1,0

	// --- standard part parameters ---
	mass = 0.050
	CoMOffset = 0.0, 0.0, 0.0
	dragModelType = default
	maximum_drag = 0.3
	minimum_drag = 0.2
	angularDrag = 1
	crashTolerance = 100
	breakingForce = 2072
	breakingTorque = 2072
	maxTemp = 2000
	bulkheadProfiles = size1, srf
	tags = rover moonbuggy buggy eagle50 cck-EG50

	// internals, resources, effects, modules
	MODULE
	{
		name = ModuleWheelBase
		
		wheelColliderTransformName = wheelCollider		
		wheelTransformName = wheelPivot
		
		// setting this to true will override the radius and center parameters
		FitWheelColliderToMesh = False		
		radius = 0.24	//0.32
		center = 0, 0, 0
		mass = 0.040
		groundHeightOffset = -0.4
				
		TooltipTitle = Moonbuggy Wheel
		TooltipPrimaryField = Motorized
	}
	MODULE
	{
		name = ModuleWheelSuspension
		baseModuleIndex = 0
		suspensionTransformName = suspensionPivot
		
		suspensionDistance = 0.1
		targetPosition = 0.01			
		springRatio = 14
		damperRatio = 2
	}	
	MODULE
	{
		name = ModuleWheelSteering
		baseModuleIndex = 0	
		caliperTransformName = steeringPivot
		autoSteeringAdjust = true		
		steeringResponse = 1	//0.5 //2
		steeringRange = 25
		steeringCurve
		{
			key = 0 20
			key = 20 20
		}
		steeringMaxAngleCurve
		{
			key = 0 1 0 0
			key = 3 1 0.0001624425 0.0001624425
			key = 7.5 0.33 -0.05674612 -0.05674612
			key = 20 0.12 -0.003158088 -0.003158088
			key = 30 0.1 -0.002872917 -0.002872917
		}
	}
	MODULE
	{
		name = ModuleWheelMotor
		baseModuleIndex = 0
		
		wheelSpeedMax = 20
		driveResponse = 10
		
		torqueCurve
		{
			key = 0 1.0 0 0
			key = 5 0.5 0 0
			key = 10 0.25 0 0
			key = 20 0 0 0
		}
		RESOURCE
		{
			name = ElectricCharge
			rate = 3.5
		}		
		idleDrain = 0.0
	}	
	MODULE
	{
		name = ModuleWheelBrakes
		baseModuleIndex = 0
		
		maxBrakeTorque = 3
	    	brakeResponse = 1 //2
	}
	//MODULE
	{
		name = ModuleCargoPart	
		stackableQuantity = 1
		packedVolume = -1
	}


}
