PART
{
	name = CJK9WheelP
	module = Part
	author = ColdJ
	MODEL
	{
		model = TAKDIS/Pod/K9Wheel
	}
	scale = 1
	rescaleFactor = 1
	node_attach = 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 1
	node_stack_top = 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 1
	TechRequired = precisionEngineering
	entryCost = 3100
	cost = 300
	category = Ground
	subcategory = 0
	title = K9 Wheel
	manufacturer = CJ Aerospace
	description = So K9 can get around
	attachRules = 1,1,1,1,0
	mass = 0.025
	dragModelType = default
	maximum_drag = 0.3
	minimum_drag = 0.2
	angularDrag = 1
	//crashTolerance = 7
	maxTemp = 1200 // = 3600
	crashTolerance = 50
	breakingForce = 200
	breakingTorque = 200
	bulkheadProfiles = srf, size1
	tags = tardis k9
	MODULE
	{
		name = ModuleWheelBase
		
		wheelColliderTransformName = WheelCollider		
		wheelTransformName = WheelPivot
		useNewFrictionModel = true
		wheelType = MOTORIZED
		adherentStart = 0.5
		frictionAdherent = .3
		peakStart = 3
		frictionPeak = 1.5
		limitStart = 6
		frictionLimit = 1.3		
		// setting this to true will override the radius and center parameters
		FitWheelColliderToMesh = False		
		radius = 0.026425 // 0.05285 // 0.157
		center = 0,0,0
		mass = 0.040
		groundHeightOffset = 0
				
		TooltipTitle = #autoLOC_502081 //#autoLOC_502081 = Rover Wheel
		TooltipPrimaryField = #autoLOC_6004045 //#autoLOC_6004045 = Motorized
	}
	MODULE
	{
		name = ModuleWheelSuspension
		baseModuleIndex = 0
		suspensionTransformName = SuspensionPivot
		maximumLoad = 8.0
		suspensionDistance = 0.0195
		suspensionOffset = -0.05
		targetPosition = 0.2			
		springRatio = 24
		damperRatio = 1.0
		useAutoBoost = true
		useDistributedMass = true
	}	
	MODULE
	{
		name = ModuleWheelSteering
		baseModuleIndex = 0
		
		caliperTransformName = SteeringPivot
		autoSteeringAdjust = true
		steeringResponse = 1.5		
		steeringRange = 40		
		steeringCurve
		{
			key = 0 40
			key = 20 40
		}
		steeringMaxAngleCurve
		{
			key = 0 1 0 0
			key = 1.25 1 -0.007298814 -0.007298814
			key = 5 0.35 -0.0659221 -0.0659221
			key = 15 0.166 -0.006501267 -0.006501267
		}
	}
	MODULE
	{
		name = ModuleWheelMotor
		baseModuleIndex = 0
		
		wheelSpeedMax = 11
		driveResponse = 2
		
		torqueCurve
		{
			key = 0 0.17 0 0
			key = 2.5 0.1 0 0
			key = 12 0 0 0
		}
		RESOURCE
		{
			name = ElectricCharge
			rate = 1//5
		}		
		idleDrain = 0.0//0.1//
	}	
	MODULE
	{
		name = ModuleWheelBrakes
		baseModuleIndex = 0
		
		maxBrakeTorque = 0.84
		brakeResponse = 2
	}

	MODULE
	{
		name = FXModuleLookAtConstraint
		CONSTRAINLOOKFX
		{
			targetName = Suspension2
			rotatorsName = Suspension1

		}
		CONSTRAINLOOKFX
		{
			targetName = Suspension1

			rotatorsName = Suspension2
		}
	}
	MODULE
	{
		name = ModuleTestSubject
		environments = 15
		useStaging = False
		useEvent = True
	}
	MODULE
	{
		name = ModuleCargoPart
		packedVolume = 50
	}


	MODULE
	{
		name = RSE_Wheels
        	volume = 1.0

        	//Torque, Speed, Ground, Slip
        	Speed
        	{
            		//SOUNDLAYER
            		{
                		name = Motor_Base
                		audioClip = TAKDIS/Sounds/Footmotor

                		loop = true
                		loopAtRandom = false

                		channel = ShipBoth
                
                		spool = true
				spoolSpeed = 60

                		spread = 0.12

                		volume = 0.0 0.0
                		volume = 1.0 0.6
                		volume = 15.0 1.0

                		pitch = 0.0 0.25
                		pitch = 15.0 0.5
            		}
            		SOUNDLAYER
            		{
                		name = Motor_Drive
                		audioClip = TAKDIS/Sounds/Footmotor

                		loop = true
                		loopAtRandom = false

                		channel = ShipBoth

                		spool = false
				spoolSpeed = 60

                		spread = 0.12

                		volume = 0.0 0.0
                		volume = 1.0 0.6
                		volume = 15.0 1.0

                		pitch = 0.0 0.1
                		pitch = 15.0 0.5
            		}
        	}

        	Ground
        	{
            		//SOUNDLAYER
            		{
                		name = Tire_Concrete
                		audioClip = TAKDIS/Sounds/Wheel
                		data = concrete
                
                		loop = true
                		loopAtRandom = true

                		channel = ShipBoth

                		spread = 0.12

                		volume = 0.0 0.0
                		volume = 1.0 0.5
                		volume = 60.0 1.0

                		pitch = 0.0 0.6
                		pitch = 60.0 1.2
            		}

            		//SOUNDLAYER
            		{
                		name = Tire_Ground-Dirt
                		audioClip = TAKDIS/Sounds/Wheel
                		data = dirt

                		loop = true
                		loopAtRandom = true

                		channel = ShipBoth

                		spread = 0.12

                		volume = 0.0 0.0
                		volume = 1.0 0.5
                		volume = 60.0 1.0

                		pitch = 0.0 0.6
                		pitch = 60.0 1.0
            		}
        	}

        	Slip
        	{
            		//SOUNDLAYER
            		{
                		name = Tire_Screech-Low-Concrete
                		audioClip = TAKDIS/Sounds/Wheel
                		data = concrete
                
                		loop = true
                		loopAtRandom = true

                		channel = ShipBoth

                		spool = true
				spoolSpeed = 2

                		spread = 0.12

                		volume = 0.0 0.0
                		volume = 0.1 0.5
                		volume = 1.0 1.0

                		pitch = 0.0 1.2
                		pitch = 1.0 0.8
            		}

            		//SOUNDLAYER
            		{
                		name = Tire_Slip-Dirt
                		audioClip = TAKDIS/Sounds/Wheel
                		data = dirt
                
                		loop = true
                		loopAtRandom = true

                		channel = ShipBoth
                
                		spool = true
				spoolSpeed = 2

                		spread = 0.12
                
                		volume = 0.0 0.0
                		volume = 0.1 0.5
                		volume = 1.0 1.0

                		pitch = 0.0 2.0
                		pitch = 1.0 1.5
            		}
        	}
	}

}
