<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="tractor_crawler">
	<annotation>Copyright (C) vasilisvasilis31, All Rights Reserved.</annotation>
    <name>
        <en>John Deere 9560RT</en>
        <de>John Deere 9560RT</de>
    </name>
    <typeDesc>John Deere 9560RT</typeDesc>
    <filename>JD_9560RT.i3d</filename>
    
    <wheels autoRotateBackSpeed="1">
        <wheel rotSpeed="45" rotMax="50" rotMin="-50" driveMode="2" repr="0>0|12|3|8"  radius="0.575" initialCompression="50" suspTravel="0.09" spring="35" damper="25" mass="15" hasTyreTracks="true" tyreTrackAtlasIndex="0"/>
        <wheel rotSpeed="45" rotMax="50" rotMin="-50" driveMode="2" repr="0>0|12|2|8"  radius="0.575" initialCompression="50" suspTravel="0.09" spring="35" damper="25" mass="15" hasTyreTracks="true" tyreTrackAtlasIndex="0"/>
	<wheel rotSpeed="0" driveMode="1" repr="0>0|12|3|7"  radius="0.85" initialCompression="50" suspTravel="0.09" spring="35" damper="25" mass="15" hasTyreTracks="true" tyreTrackAtlasIndex="0"/>
        <wheel rotSpeed="0" driveMode="1" repr="0>0|12|2|7"  radius="0.85" initialCompression="50" suspTravel="0.09" spring="35" damper="25" mass="15" hasTyreTracks="true" tyreTrackAtlasIndex="0"/>
    </wheels>

    <motor torqueScale="2.065" minRpm="700" maxRpm="2200" maxBackwardSpeed="15" brakeForce="16" lowBrakeForceScale="0.22" lowBrakeForceSpeedLimit="1" minForwardGearRatio="19.5" maxForwardGearRatio="130" minBackwardGearRatio="50" maxBackwardGearRatio="130">
        <torque normRpm="0.45" torque="0.9"/>
        <torque normRpm="0.5" torque="0.97"/>
        <torque normRpm="0.59" torque="1"/>
        <torque normRpm="0.72" torque="1"/>
        <torque normRpm="0.86" torque="0.88"/>
        <torque normRpm="1" torque="0.72"/>
    </motor>
	
    <differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.2" wheelIndex1="0" wheelIndex2="1" /> <!-- front left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="2" wheelIndex2="3" /> <!-- back left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.1" differentialIndex1="0" differentialIndex2="1" /> <!-- front-back -->
    </differentials>

    <fuelCapacity>495</fuelCapacity>
    <fuelUsage>19</fuelUsage>

	<crawlers>
        <crawler index="0>0|12|2|6" speedRefNode="0>0|12|2|6" scrollSpeed="0.18"  shaderParameterName="offsetUV" shaderParameterComponent="1" length="1" realWheel="1">
            <rotatingPart index="0>0|12|2|0" radius="0.82" />
            <rotatingPart index="0>0|12|2|1" radius="0.17" />
            <rotatingPart index="0>0|12|2|2" radius="0.17" />
            <rotatingPart index="0>0|12|2|3" radius="0.17" />
            <rotatingPart index="0>0|12|2|4" radius="0.17" />
	    <rotatingPart index="0>0|12|2|5" radius="0.52" />
        </crawler>
        <crawler index="0>0|12|3|6" speedRefNode="0>0|12|3|6" scrollSpeed="0.18"  shaderParameterName="offsetUV" shaderParameterComponent="1" length="1" realWheel="1">
            <rotatingPart index="0>0|12|3|0" radius="0.82" />
            <rotatingPart index="0>0|12|3|1" radius="0.17" />
            <rotatingPart index="0>0|12|3|2" radius="0.17" />
            <rotatingPart index="0>0|12|3|3" radius="0.17" />
            <rotatingPart index="0>0|12|3|4" radius="0.17" />
	    <rotatingPart index="0>0|12|3|5" radius="0.52" />
        </crawler>
    </crawlers>

	<cameras count="2">
        <camera1 index="0>0|1|0" rotatable="true" rotateNode="0>0|1" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="2" transMax="60" />
        <camera2 index="0>0|8|0|5|0|0|0" rotatable="true" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" useMirror="true" isInside="true" />
    </cameras>	

    <lights>
        <light realLight="0>1|0" decoration="0>1|1" lightType="0"/>
	<light realLight="0>2|0" decoration="0>2|1" lightType="1"/>
    </lights>

    <brakeLights>
        <brakeLight index="0>3" />
    </brakeLights>

    <beaconLights>
        <beaconLight index="0>4" speed="0.015" filename="$data/vehicles/shared/beaconLight02.i3d"/>
        <beaconLight index="0>5" speed="0.015" filename="$data/vehicles/shared/beaconLight02.i3d"/>
    </beaconLights>

    <enterReferenceNode index="0>" />
    <exitPoint index="0>0|2" />
	
    <attachSound file="sounds/attach.wav" pitchOffset="1" />
    <motorStartSound file="sounds/JD_Start.wav" pitchOffset="1" volume="0.8" />
    <motorSound file="sounds/bbrun.wav" pitchOffset="0.7" pitchScale="0.015" pitchMax="1.5" volume="1.3" radius="35" innerRadius="15"/>
    <motorSoundRun file="sounds/9560R_Run.wav" pitchOffset="1" pitchScale="0.02" pitchMax="1.3" volume="1.1" radius="35" innerRadius="15" />
    <motorStopSound file="sounds/JD_Stop.wav" pitchOffset="0.975" />
    <compressedAirSound file="sounds/JD_brake.wav" pitchOffset="1"/>
    <compressionSound file="sounds/JD_brake.wav" pitchOffset="1" volume="1.3"/>    
    <aiMotorSound  file="sounds/9560R_Run.wav" pitchOffset="0.8" radius="15" innerRadius="4" volume="0.8"  /> 
    <honkSound file="sounds/horn.wav" volume="1" radius="50" innerRadius="35" />
	
    <attacherJoints adapter="0>0|7" attacherJoint="0>0|7|0" topReferenceNode="0>0|7|1">
        <attacherJoint index="0>0|6|2|0|0" rotationNode="0>0|6|2" rotationNode2="0>0|6|2|0" minRot="25 0 0" maxRot="0 0 0" maxRot2="0 0 0" minRotDistanceToGround="1.382" movetime="2.5" >
            <bottomArm rotationNode="0>0|6|0" translationNode="0>0|6|0|0" referenceNode="0>0|6|0|0|0" zScale="-1" />
            <!--<topArm rotationNode="0>0|6|1|2" translationNode="0>0|6|1|2|0|0" referenceNode="0>0|6|1|2|0|0|0" zScale="-1"/>-->
        </attacherJoint>
		<attacherJoint index="0>0|3"   jointType="trailerLow" maxRotLimit="10 50 50" minRotRotationOffset="0" allowsJointLimitMovement="false" />
    </attacherJoints>

    <aiTrafficCollisionTrigger index="0>0|4" />     
	
	<components count="1">
		<component1 centerOfMass="0.1 1.05 -0.2" solverIterationCount="40" />
    </components>
	
	<characterNode index="0>0|8|0|1|1|0" cameraMinDistance="1.5" filename="$dataS2/character/player/player.i3d" characterMesh="1" characterGloves="2" characterSkin="0" spineNode="0|0" leftArmIKChainId="leftArm" spineRotation="180 0 104" >
        <ikChains>
            <ikChain id="rightFoot" target="0>0|8|0|1|1|1" targetOffset="0 0.1 0" alignToTarget="true" isDirtyOnLoad="true" >
                <node index="0|1" />
                <node index="0|1|0"     minRx="0" maxRx="0" minRy="-30" maxRy="30" minRz="0"   maxRz="90" />
                <node index="0|1|0|0"   minRx="0" maxRx="0" minRy="0"   maxRy="0"  minRz="-100" maxRz="-7" />
                <node index="0|1|0|0|0" />
            </ikChain>
            <ikChain id="leftFoot" target="0>0|8|0|1|1|2" targetOffset="0 0.1 0" alignToTarget="true" isDirtyOnLoad="true">
                <node index="0|2"     />
                <node index="0|2|0"     minRx="0" maxRx="0" minRy="-30" maxRy="30" minRz="0"   maxRz="90" />
                <node index="0|2|0|0"   minRx="0" maxRx="0" minRy="0"   maxRy="0"  minRz="-100" maxRz="-7" />
                <node index="0|2|0|0|0" />
            </ikChain>
            <ikChain id="rightArm" target="0>0|8|0|1|0|2" targetOffset="0.025 0.066 0" alignToTarget="true" isDirtyOnLoad="true">
                <node index="0|0|0|1" />
                <node index="0|0|0|1|0" minRx="-20" maxRx="20" minRy="-20" maxRy="20" minRz="-80" maxRz="80" />
                <node index="0|0|0|1|0|0" minRx="-10" maxRx="10" minRy="0" maxRy="0" minRz="7"   maxRz="130" />
                <node index="0|0|0|1|0|0|0" />
                <rotationNode index="0|0|0|1|0|0|0|0" rotation="0 0 -60" />
                <rotationNode index="0|0|0|1|0|0|0|0|0" rotation="0 0 -60" />
                <rotationNode index="0|0|0|1|0|0|0|1" rotation="-90 60 -60" />
                <rotationNode index="0|0|0|1|0|0|0|1|0" rotation="0 0 -40" />
            </ikChain>
            <ikChain id="leftArm" target="0>0|8|0|2|0|0|0|0" targetOffset="-0.025 0.066 0" alignToTarget="true" isDirtyOnLoad="true">
                <node index="0|0|0|2" />
                <node index="0|0|0|2|0" minRx="-20" maxRx="20" minRy="-20" maxRy="20" minRz="-80" maxRz="80" />
                <node index="0|0|0|2|0|0" minRx="-10" maxRx="10" minRy="0" maxRy="0" minRz="7"   maxRz="130" />
                <node index="0|0|0|2|0|0|0" />
                <rotationNode index="0|0|0|2|0|0|0|0" rotation="0 0 -60" />
                <rotationNode index="0|0|0|2|0|0|0|0|0" rotation="0 0 -60" />
                <rotationNode index="0|0|0|2|0|0|0|1" rotation="-90 20 -40" />
                <rotationNode index="0|0|0|2|0|0|0|1|0" rotation="0 0 -40" />
            </ikChain>
        </ikChains>
    </characterNode>
		
    <schemaOverlay file="$dataS2/menu/schemas/vehicleSchema.png" fileSelected="$dataS2/menu/schemas/vehicleSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0.5 0">
        <attacherJoint position="1 0" rotation="0" invertX="false" />
    </schemaOverlay>
	
</vehicle>
