<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="tractor">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>1961 850 Prototype Diesel ES</name>
        <specs>
            <power>95</power>
            <maxSpeed>35</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_tractor</function>
        </functions>
        <image>Textures/JD850ES.dds</image>
        <price>5200</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>JOHNDEERE</brand>
        <category>tractorsS</category>
        <vertexBufferMemoryUsage>1756048</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>301140</indexBufferMemoryUsage>
        <textureMemoryUsage>18918376</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
    <base>
        <typeDesc>$l10n_typeDesc_tractor</typeDesc>
        <filename>JohnDeereDiesel.i3d</filename>
        <size width="3.5" length="6"/>
        <components>
             <component centerOfMass="0 0.45 0.5" solverIterationCount="100"mass="2008" />
            <component centerOfMass="0 0.1 0" solverIterationCount="10"mass="1008" />
            <joint component1="1" component2="2" node="0>0|0|12" rotLimit="0 0 16" transLimit="0 0 0"/>
        </components>
       <schemaOverlay attacherJointPosition="0 0" name="VEHICLE" />
        <mapHotspot type="TRACTOR" />
		 <sounds filename="$data/vehicles/zetor/z25k/sounds/z25k.xml"/>
    </base>
	<wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels autoRotateBackSpeed="2.0">
                    <wheel filename="wheelXML/320_85R28.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="1.7" repr="frontWheelLeftRepr" driveNode="frontWheelLeftDriveNode" forcePointRatio="0.5" initialCompression="25" suspTravel="0.13" spring="32" damper="30"/>
                    </wheel>
                    <wheel filename="wheelXML/320_85R28.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="1" restLoad="1.7" repr="frontWheelRightRepr" driveNode="frontWheelRightDriveNode" forcePointRatio="0.5" initialCompression="25" suspTravel="0.13" spring="32" damper="30"/>
                    </wheel>
                    <wheel filename="wheelXML/460_85R38.xml" isLeft="true" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.0" repr="backWheelLeft" forcePointRatio="0.5" initialCompression="0" suspTravel="0.15" spring="25" damper="30"/>
                    </wheel>
                    <wheel filename="wheelXML/460_85R38.xml" isLeft="false" hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="1.0" repr="backWheelRight" forcePointRatio="0.5" initialCompression="0" suspTravel="0.15" spring="25" damper="30"/>
                    </wheel>
     
                </wheels>
            </wheelConfiguration>	
        </wheelConfigurations>
        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="40" rotMax="40" rotCenterWheel1="3" rotCenterWheel2="4"/>
            <ackermannSteering rotSpeed="40" rotMax="33" rotCenterWheel1="3" rotCenterWheel2="4"/>
            <ackermannSteering rotSpeed="40" rotMax="38" rotCenterWheel1="3" rotCenterWheel2="4"/>
        </ackermannSteeringConfigurations>
        <rimColor>0.991102097 0.617206562 0.015996293</rimColor>
        <hubs>
            <color0>0.991102097 0.617206562 0.015996293</color0>
            <color1>0.991102097 0.617206562 0.015996293</color1>
            <hub linkNode="frontWheelLeftDriveNode" filename="wheelXML/hub_n9_1.xml" isLeft="true" scale="1.1 1.1 1.1"/>
            <hub linkNode="frontWheelRightDriveNode" filename="wheelXML/hub_n9_1.xml" isLeft="false" scale="1.1 1.1 1.1"/>
            <hub linkNode="backWheelLeft" filename="$data/shared/wheels/hubs/hub_n10_14.xml" isLeft="true"  scale="0.8 0.33 0.33" />
            <hub linkNode="backWheelRight" filename="$data/shared/wheels/hubs/hub_n10_14.xml" isLeft="false" scale="0.8 0.33 0.33" />
        </hubs>
    </wheels>
   
    <speedRotatingParts>
        <speedRotatingPart node="0>0|0|18|4" radius="0.2" groundReferenceNodeIndex="1" onlyActiveWhenLowered="false"/>
		<speedRotatingPart node="cardanBackPart" wheelIndex="1" wheelScale="3"/>
        <speedRotatingPart node="frontCardanPart" wheelIndex="1" wheelScale="3"/>
    </speedRotatingParts>
    <attacherJoints>
        <attacherJoint node="attacherJointBack" upperRotationOffset="0.16"  moveTime="2.5" comboTime="1">
				<distanceToGround lower="0.09" upper="0.92" />
				<rotationNode node="attacherJointBackRot" lowerRotation="-20 0 0" upperRotation="25 0 0" />
				<rotationNode2 node="attacherJointBackRot2" />
				<bottomArm rotationNode="attacherJointBackArmBottom" translationNode="bottomArmBack" referenceNode="bottomArmBackRef" zScale="-1" startRotation="-9 0 0" />
				<topArm baseNode="attacherJointBackArmTop" filename="$data/shared/assets/upperLinks/walterscheid02.i3d" color="0.991102097 0.617206562 0.015996293" material="6" zScale="1" toggleVisibility="true" />
				<schema position="1 0" rotation="0" invertX="false" />
				<objectChange node="Zgm" visibilityActive="false" visibilityInactive="true"        />
				<objectChange node="0>0|0|21|0|0|3" visibilityActive="true"     visibilityInactive="false"    />
			</attacherJoint>
			<attacherJoint node="trailerAttacher" jointType="trailer" lowerRotLimit="10 50 50" upperRotationOffset="0" allowsJointLimitMovement="false">
               <schema position="1 0" rotation="0" invertX="false"/>
			</attacherJoint>
            <attacherJoint node="trailerLOW1" jointType="trailerLow" lowerRotLimit="10 50 50" upperRotationOffset="0" allowsJointLimitMovement="false">
               <schema position="0 0" rotation="0" invertX="true"/>
			   <objectChange node="Zgm" visibilityActive="false" visibilityInactive="true"        />
            </attacherJoint>
    </attacherJoints>
    <powerTakeOffs>
        <output attacherJointIndices="1 2 3 " outputNode="ptoBack" />
    </powerTakeOffs>
    
	<connectionHoses>
	    <target attacherJointIndices="1 2 3" type="airDoubleRed" node="0>0|0|18|39|0" socket="air_red"/>
        <target attacherJointIndices="1 2 3" type="airDoubleYellow" node="0>0|0|18|39|1" socket="air_yellow"/>
        
		<target attacherJointIndices="1 2 3" type="electric" node="Elektrik2" socket="electric_metal"/>
		
		
		<target attacherJointIndices="1 2 3" type="hydraulicIn"     node="hyd4"         socket="hydraulic02"     />
        <target attacherJointIndices="1 2 3" type="hydraulicOut"    node="hyd3"         socket="hydraulic02"     />
		<target attacherJointIndices="1 2 3" type="hydraulicIn"     node="hyd2"         socket="hydraulic01"     />
        <target attacherJointIndices="1 2 3" type="hydraulicOut"    node="hyd1"         socket="hydraulic01"     />
	</connectionHoses>
	
	<lights>
        <states>
            <state lightTypes="0"/>
        </states>
        <realLights>
            <low>
               <light node="0>0|0|13|0|1" lightTypes="0"/>
                <light node="0>0|0|13|1|1" lightTypes="0" />
                <light node="0>0|0|13|0|1|0"lightTypes="0"/>
            </low>
            <high>
                <light node="0>0|0|13|0|2" lightTypes="0"/>
                <light node="0>0|0|13|0|2|0" lightTypes="0" />
				<light node="0>0|0|13|1|2"lightTypes="0"/>
            
            </high>
        </realLights>
		<defaultLights>
			<defaultLight shaderNode="koplamp1" lightTypes="0 3" intensity="1"/>
			<defaultLight shaderNode="koplamp2" lightTypes="0 3" intensity="1"/>
			<defaultLight shaderNode="woklight" lightTypes="0 1" intensity="1"/>
		</defaultLights>	 
		<sounds>
            <switchLight template="SWITCH_01"  />
        </sounds>
		<dashboards>
            
            <!-- AmaturenBrettBeleuchtung -->
            <dashboard displayType="EMITTER" valueType="lightState" node="0>0|0|18|3" intensity="0.4" lightTypes="0" groups="MOTOR_ACTIVE"/>
			
			<dashboard displayType="EMITTER" valueType="lightState" node="0>0|0|22|0|0" intensity="0.3" lightTypes="0" groups="MOTOR_ACTIVE"/>
			<dashboard displayType="EMITTER" valueType="lightState" node="0>0|0|22|1|0" intensity="0.3" lightTypes="0" groups="MOTOR_ACTIVE"/>
			<dashboard displayType="EMITTER" valueType="lightState" node="0>0|0|22|2|0" intensity="0.3" lightTypes="0" groups="MOTOR_ACTIVE"/>
			<dashboard displayType="EMITTER" valueType="lightState" node="0>0|0|22|3|0" intensity="0.3" lightTypes="0" groups="MOTOR_ACTIVE"/>
        </dashboards>	 
    </lights>
    <enterable>
        <exitPoint node="0>0|0|6"/>
        <enterReferenceNode node="0>"/>
        <characterNode node="0>0|0|10|0" cameraMinDistance="2.5" spineRotation="-90 0 90">
            <target ikChain="rightFoot" targetNode="0>0|0|10|1"/>
            <target ikChain="leftFoot" targetNode="0>0|0|10|2"/>
            <target ikChain="rightArm" targetNode="0>0|0|15"/>
            <target ikChain="leftArm" targetNode="0>0|0|11|0|1"/>
        </characterNode>
        <cameras>
            <camera node="0>0|0|2|0" rotatable="true" rotateNode="0>0|0|2" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="35">
                <raycastNode node="0>0|0|4"/>
                <raycastNode node="0>0|0|5"/>
            </camera>
            <camera node="0>0|0|3" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true"/>
        </cameras>
    </enterable>
    <motorized>
		<consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="35"  fillType="diesel" />  <!-- usage is per hour at max load and max rpm -->
            </consumerConfiguration>
        </consumerConfigurations>	
        <motorConfigurations>
            <motorConfiguration name="850" price="0">
                <motor torqueScale="0.808" minRpm="300" maxRpm="1200" maxForwardSpeed="35" maxBackwardSpeed="10" brakeForce="3.5" lowBrakeForceScale="0.22" lowBrakeForceSpeedLimit="1" rotInertia="0.001">
                    <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>
                         <transmission autoGearChangeTime="0.3" gearChangeTime="0.3" name="$l10n_info_transmission_manualWithPowerShiftGroups">
                    <directionChange useGear="false" useGroup="false" changeTime="0.5"/>
   
                    <forwardGear maxSpeed="4.8" name="1" reverseName="-1"/>
                    <forwardGear maxSpeed="5.77" name="2" reverseName="-2"/>
                    <forwardGear maxSpeed="7.72" name="3" />
                    <forwardGear maxSpeed="8.51" name="4"/>
                    <forwardGear maxSpeed="10.47" name="5" />
					  <forwardGear maxSpeed="26.47" name="6" />
                </transmission>
                <!-- 
                <objectChange node="0>0|0|18|19" visibilityActive="true"/>
                <objectChange node="0>0|0|18|25" visibilityActive="false"/>
                <objectChange node="0>0|0|18|26" visibilityActive="true"/> -->
            </motorConfiguration>
        </motorConfigurations>
	
		
		
        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.3" wheelIndex1="1" wheelIndex2="2"/>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.4" wheelIndex1="3" wheelIndex2="4"/>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.1" differentialIndex1="1" differentialIndex2="2"/>
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>
		<exhaustEffects>
            <exhaustEffect node="0>0|0|18|34|0" filename="$data/effects/exhaust/exhaust.i3d" minRpmColor="0 0 0 1" maxRpmColor="0.01 0.01 0.01 5" minRpmScale="0.1" maxRpmScale="0.55" />
        </exhaustEffects>
        <exhaustFlap node="0>0|0|18|34|1" maxRot="80"/>
		<motorStartDuration>9000</motorStartDuration>

      
        <animationNodes>
            <animationNode node="0>0|0|20" rotSpeed="1000" rotAxis="3" turnOnFadeTime="0" turnOffFadeTime="4"/>
            <animationNode node="0>0|0|18|1" rotSpeed="1000" rotAxis="3" turnOnFadeTime="0" turnOffFadeTime="4"/>
			<animationNode node="0>0" rotSpeed="2000" rotAxis="3" turnOnFadeTime="8" turnOffFadeTime="3"/>
			<animationNode node="0>0|0" rotSpeed="-2000" rotAxis="3" turnOnFadeTime="8" turnOffFadeTime="3"/>
        </animationNodes>
		<dashboards>
            <dashboard displayType="ANIMATION" valueType="speed" animName="speedDisplay"  minValueAnim="0" maxValueAnim="35" groups="MOTOR_ACTIVE"/>
			<dashboard displayType="ANIMATION" valueType="motorTemperature" animName="tempDisplay" groups="MOTOR_ACTIVE"/>
			<dashboard displayType="ANIMATION" valueType="motorTemperature" animName="tempDisplay2" groups="MOTOR_ACTIVE"/>
			<dashboard displayType="ANIMATION" valueType="rpm" animName="WackelStop" minValueAnim="0" maxValueAnim="850" groups="MOTOR_ACTIVE"/>
        </dashboards>
    </motorized>
    <drivable>
        <steeringWheel node="0>0|0|11|0" indoorRotation="540" outdoorRotation="45"/>
    </drivable>
    
	<animations>
        <animation name="speedDisplay">
            <part node="0>0|0|22|0|0" startTime="0" endTime="1" startRot="0 0 0" endRot="180 0 0"/>
        </animation>
        <animation name="fuelDisplay">
            <part node="0>0|0|22|1|0" startTime="0" endTime="1" startRot="0 0 0" endRot="70 0 0"/>
        </animation>
		<animation name="tempDisplay">
            <part node="0>0|0|22|3|0"  startTime="0.0" endTime="1.0" startRot="0 0 0" endRot="62 0 0" />
        </animation>
		<animation name="tempDisplay2">
            <part node="0>0|0|22|2|0"  startTime="0.0" endTime="1.0" startRot="30 0 0" endRot="46 0 0" />
        </animation>
		<animation name="WackelStop">
            <part node="0>0|0"  startTime="0.0" endTime="1.0" startTrans="0.004 0 0" endTrans="0.001 0 0" />
        </animation>
    </animations>
	
	<cylindered>
        <movingTools>
            <movingTool node="attacherJointBackArmBottom">
                <dependentPart node="mainArm" />
            </movingTool>
        </movingTools>
        <movingParts>
            <movingPart node="steeringBar" referencePoint="steeringBarRef" referenceFrame="steeringBarRef" isActiveDirty="true" maxUpdateDistance="40" scaleZ="true"/>
            
            <movingPart node="cardanMiddlePart" referencePoint="cardanMiddlePartRef" referenceFrame="cardanMiddlePartRef" isActiveDirty="true" maxUpdateDistance="40"/>
			
			<movingPart node="mainArm" referencePoint="mainArmRef" localReferencePoint="mainArmPart" referenceFrame="0>0|0|21|3" isActiveDirty="true" maxUpdateDistance="40">
                <dependentPart node="mainArmPart" />
            </movingPart>
            <movingPart node="mainArmPart" referencePoint="mainArmRef" referenceFrame="mainArmRef" isActiveDirty="true" maxUpdateDistance="40">
                <dependentPart node="mainArmPartLeft" />
                <dependentPart node="mainArmPartRight" />
            </movingPart>
			<movingPart node="mainArmPartLeft" referencePoint="mainArmPartLeftRef" referenceFrame="mainArmPartLeftRef"  isActiveDirty="true" maxUpdateDistance="40"/>
            <movingPart node="mainArmPartRight" referencePoint="mainArmPartRight" referenceFrame="mainArmPartRight"  isActiveDirty="true" maxUpdateDistance="40"/>
        </movingParts>
    </cylindered>

	 <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                      <fillUnit capacity="123" unit="$l10n_unit_literShort" fillTypes="diesel" showOnHud="false" showInShop="false">
                        <dashboard displayType="ANIMATION" valueType="fillLevel" animName="fuelDisplay" groups="MOTOR_ACTIVE"/>
                    </fillUnit>
					<fillUnit capacity="2000" unit="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="air"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
	
	
	<dashboard>
        <groups>
            <group name="MOTOR_STARTING" isMotorStarting="true"/>
            <group name="MOTOR_ACTIVE"   isMotorStarting="true" isMotorRunning="true"/>
        </groups>

        <default>
            <!-- <dashboard displayType="VISIBILITY"                                 node="dashbords1"                                                                             groups="MOTOR_ACTIVE" /> -->
            <!-- <dashboard displayType="EMITTER"                                    node="startingDecal"   baseColor="BLACK" emitColor="RED"                                      groups="MOTOR_STARTING" /> -->
		</default>
    </dashboard>
	<foliageBending>
        <bendingNode minX="-1.0" maxX="1.0" minZ="-2.0" maxZ="2.25" yOffset="0.6"/>
        <bendingNode minX="-1.0" maxX="1.0" minZ="-2.0" maxZ="-0.3" yOffset="0.6"/>
    </foliageBending>
	<washable dirtDuration="50" washDuration="1" workMultiplier="4"/>
   
	<designConfigurations title="Dach">
        <designConfiguration name="Ohne" price="0">
            <objectChange node="0>0|0|23" visibilityActive="false" />
        </designConfiguration>
        <designConfiguration name="Mit" price="100">
            <objectChange node="0>0|0|23" visibilityActive="true" />
        </designConfiguration>
		
    </designConfigurations>
	<i3dMappings>
	     <i3dMapping id="frontWheelLeftRepr" node="1>0|0"/>
        <i3dMapping id="frontWheelLeftDriveNode" node="1>0|0|0"/>
        <i3dMapping id="steeringBarRef" node="1>0|0|1"/>
        <i3dMapping id="frontWheelRightRepr" node="1>0|1"/>
        <i3dMapping id="frontWheelRightDriveNode" node="1>0|1|0"/>
        <i3dMapping id="steeringBar" node="1>0|1|1"/>
        <i3dMapping id="frontCardanPart" node="1>0|2|0"/>
        <i3dMapping id="cardanMiddlePartRef" node="1>0|2|0|0"/>
		
		<i3dMapping id="backWheelLeft" node="0>0|0|0|0"/>
        <i3dMapping id="backWheelRight" node="0>0|0|1|0"/>
		<i3dMapping id="cardanBackPart" node="0>0|0|18|32|0"/>
        <i3dMapping id="cardanMiddlePart" node="0>0|0|18|32|1"/>
		 
		 <i3dMapping id="koplamp1" node="0>0|0|18|28|0|0" />
	     <i3dMapping id="koplamp2" node="0>0|0|18|29|0|0" />
	     <i3dMapping id="woklight" node="0>0|0|18|30|0|0" />
		 
		<i3dMapping id="trailerAttacher" 		        node="0>0|0|21|0|2|1|0"   />
		<i3dMapping id="Zgm" 				            node="0>0|0|21|0|2|1"     />
		<i3dMapping id="frontAttacher" 			        node="0>0|0|21|0|2|0"     />
		<i3dMapping id="trailerLOW1" 		            node="0>0|0|21|0|2|2"     />
		<i3dMapping id="attacherJointBackRot" 			node="0>0|0|21|0|0|0"     />
        <i3dMapping id="attacherJointBackRot2" 			node="0>0|0|21|0|0|0|0"   />
		<i3dMapping id="attacherJointBack" 				node="0>0|0|21|0|0|0|0|0" />
		<i3dMapping id="attacherJointBackArmBottom" 	node="0>0|0|21|0|0|1"     />
		<i3dMapping id="bottomArmBack" 					node="0>0|0|21|0|0|1|0"   />
		<i3dMapping id="bottomArmBackRef" 				node="0>0|0|21|0|0|1|0|0" />
		<i3dMapping id="mainArmRef" 					node="0>0|0|21|0|0|1|0|1" />
        <i3dMapping id="attacherJointBackArmTop" 		node="0>0|0|21|0|0|2"     />
		<i3dMapping id="ptoBack" 						node="0>0|0|21|0|1|0"     />
		<i3dMapping id="mainArm" 						node="0>0|0|21|1"       />
		<i3dMapping id="mainArmPart" 					node="0>0|0|21|1|0"     /> 
		<i3dMapping id="mainArmPartLeft" 				node="0>0|0|21|0|0|1|0|2" />
        <i3dMapping id="mainArmPartRight" 				node="0>0|0|21|0|0|1|0|3" />
		<i3dMapping id="mainArmPartLeftRef" 			node="0>0|0|21|0|0|1|0|2" />
        <i3dMapping id="mainArmPartRightRef" 			node="0>0|0|21|0|0|1|0|3" /> 
		
		<i3dMapping id="Elektrik1" 			      	    node="0>0|0|21|0|3|0"     />
		<i3dMapping id="Elektrik2" 			      	    node="0>0|0|21|0|3|1"     />
		<i3dMapping id="hyd1" 				      	    node="0>0|0|21|0|3|2"     />
		<i3dMapping id="hyd2" 				      	    node="0>0|0|21|0|3|3"     />
		<i3dMapping id="hyd3" 				       	    node="0>0|0|21|0|3|4"     />
		<i3dMapping id="hyd4" 				       		node="0>0|0|21|0|3|5"     />
		


		
    </i3dMappings>
    
</vehicle>
