PART
{
	name = CJEagle50Cable
	module = Part
	author = ColdJ
	MODEL
	{
		model = Space199950/Parts/Eagle50Cable
	}
	rescaleFactor = 1
	node_stack_bottom = 0.0, -0.44406, 0.0, 0.0, 1.0, 0.0, 1
	node_stack_top = 0.0, 1.5815, 0.0, 0.0, 1.0, 0.0, 1
	node_attach = 0.0, -0.44406, 0.0, 0.0, -1.0, 0.0, 1
	TechRequired = actuators
	entryCost = 2200
	cost = 100
	category = Robotics
	subcategory = 0
	title = Eagle50 Winch Cable
	manufacturer = CJ Industrial
	description = The cable to lower and raise loads.
	// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
	attachRules = 1,1,1,1,0
	mass = 0.048
	dragModelType = default
	maximum_drag = 0.2
	minimum_drag = 0.2
	angularDrag = 1
	crashTolerance = 200
	breakingForce = 2000
	breakingTorque = 2000
	maxTemp = 2000 // = 5000
	bulkheadProfiles = size1
	tags = eagle50 crane cable piston cck-EG50
	
	DRAG_CUBE
	{
		cube = 0, 0.214,0.771,0.1992, 0.214,0.771,0.1992, 0.04395,0.9961,0.6198, 0.04395,0.9971,0.09733, 0.2148,0.775,0.4095, 0.2147,0.775,0.4095, -7.4E-05,0.1091,0, 0.2096,1.106,0.2095
		cube = 50, 0.3761, 0.756, 0.18795, 0.3761, 0.756, 0.18795, 0.04395, 0.9961, 1.2184, 0.04395, 0.9971, 0.099515, 0.3765, 0.7728, 0.2971, 0.37645, 0.77275, 0.2971, -7.4e-05, 0.70905, 0.0, 0.2096, 2.306, 0.2095
		cube = 100, 0.5382,0.741,0.1767, 0.5382,0.741,0.1767, 0.04395,0.9961,1.817, 0.04395,0.9971,0.1017, 0.5382,0.7706,0.1847, 0.5382,0.7705,0.1847, -7.4E-05,1.309,0, 0.2096,3.506,0.2095
	}
	MODULE
	{
		name = ModuleRoboticServoPiston
		servoTransformName = TopJoint
		servoSrfMeshNames = capTransform
		baseTransformName = BottomJoint
		slaveTransformNames = Sleave0, Sleave1
		servoAttachNodes = top
		traverseVelocityLimits = 0.02, 2
		hardMinMaxLimits = 0, 2.8
		softMinMaxExtension = 0, 2.8
		mainAxis = Y
		servoMass = 0.25
		maxMotorOutput = 200
		positionSpringMutliplier = 100
		positionDampingMutliplier = 20
		motorizedMassPerKN = 0.00045
		motorizedCostPerDriveUnit = 0.5
		efficiency = 0.95
		baseResourceConsumptionRate = 0.02
		referenceConsumptionVelocity = 2
		// if RESOURCE is used, negative power is simply dumped
		RESOURCE
		{
			name = ElectricCharge
			rate = 1
		}
		// INPUT_RESOURCE is by default equivalent to RESOURCE
		//INPUT_RESOURCE
		//{
		//	name = ElectricCharge
		//	rate = 1
		//}
		//OUTPUT_RESOURCE is required to reclaim energy from negative power
		//OUTPUT_RESOURCE
		//{
		//	name = ElectricCharge
		//	rate = 1
		//}
	}

	MODULE
	{
		name = ModuleResourceAutoShiftState
		affectedResourceName = ElectricCharge
		affectedModuleName = ModuleRoboticServoPiston
		resourceShutOffHandler = true
		resourceStartUpHandler = true
		resourceShutOffStartUpUsePercent = true
		resourceShutOffAmount = 0
		resourceShutOffPercent = 0
		resourceStartUpAmount = 0
		resourceStartUpPercent = 5
	}
	MODULE
	{
		name = ModuleCargoPart
		packedVolume = 55
	}
}
