<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="JohnDeere_6620Tuz">
	<annotation>Copyright (C) GIANTS Software GmbH, Timber131 All Rights Reserved.</annotation>
    <name>
		<en>John Deere 6620 Tuz</en>
		<de>John Deere 6620 Tuz</de>
    </name>
    <description></description>
    <filename>JohnDeere_6620.i3d</filename>
    
	<wheels autoRotateBackSpeed="2.5" twinWheelsCheckString="JohnDeere_6930P">
        	<!-- prawe przednie koło (wheelIndex = 1) -->
		<wheel rotSpeed="50" rotMax="29" rotMin="-29" driveMode="2" repr="2>1" driveNode="2>1|0" radius="0.67" deltaY="0" suspTravel="0" spring="0"   damper="1" mass="0.35" lateralStiffness="2" />
		<!-- lewe przednie koło (wheelIndex = 2) -->
		<wheel rotSpeed="50" rotMax="29" rotMin="-29" driveMode="2" repr="3>1" driveNode="3>1|0" radius="0.67" deltaY="0" suspTravel="0" spring="0"   damper="1" mass="0.35" lateralStiffness="2" />
		<!-- prawe tylne koło (wheelIndex = 3) -->
		<wheel rotSpeed="0" driveMode="1" repr="4>1" radius="0.87"  deltaY="0" suspTravel="0" spring="180" damper="3" mass="0.55" lateralStiffness="1" />
		<!-- lewe tylne koło (wheelIndex = 4) -->
		<wheel rotSpeed="0" driveMode="1" repr="5>1" radius="0.87"  deltaY="0" suspTravel="0" spring="180" damper="3" mass="0.55" lateralStiffness="1" />
    </wheels>
	
	<motor minRpm="200" maxRpm="500 800 2500 800" maxTorques="1.2 1.5 -1 1.0" brakeForce="7" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1" accelerations="0.65 1 1 1" forwardGearRatio="15.65" backwardGearRatio="17" differentialRatio="1" rpmFadeOutRange="50">
		<torque rpm="300" torque="1.1"/>
		<torque rpm="500" torque="1.15"/>
		<torque rpm="800" torque="1.05"/>
		<torque rpm="1200" torque="1"/>
		<torque rpm="1700" torque="1.1"/>
        	<torque rpm="2100" torque="1.1"/>
		<torque rpm="2500" torque="0.95"/>

		
		<backwardTorque rpm="1400" torque="0.9"/>
	</motor>
	<accelerationSpeed maxAcceleration="0.3" deceleration="0.25" backwardDeceleration="0.4" />


	<exhaustParticleSystems count="1" >
	<exhaustParticleSystem1 node="0>25" file="realParticles.i3d" />
        </exhaustParticleSystems>
        <realExhaustParticleSystem parameter="exhaustingSystem" minAlpha="0.07" maxAlpha="0.5" />
	
    <fuelCapacity>250</fuelCapacity>
    <fuelUsage>0.0017</fuelUsage>
	<downForce>6</downForce>
    <cameras count="2">
       <camera1 index="0>65|0" rotatable="true" rotateNode="0>65" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="35" />
        <camera2 index="5" rotatable="true" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" />
    </cameras>

    <lights count="2">
        <light1 index="12" />
        <light2 index="13" />
    </lights>	
	<lightCones>
		<lightCone index="26" />	
	</lightCones>	
	<lightCoronas>
		<lightCorona index="27" />	
	</lightCoronas>	
	<beaconLights stayOn="true">
		<beaconLight index="34|5|1|1|0" rotIndex="34|5|1" speed="0.017" />
	</beaconLights>
	
    <steering index="20|0" rotationSpeed="6"/>
	
    <cuttingAreas count="0">
        <cuttingArea1 startIndex="6" widthIndex="7" heightIndex="8" losing="true"/>
    </cuttingAreas>
    <enterReferenceNode index="0>" />
    <exitPoint index="9" />
    <size width="3.8" length="7.5" lengthOffset="-0.2"/>
    <characterNode index="22" cameraMinDistance="1.5" />
    <aiTrafficCollisionTrigger index="24" />
    <tipCamera index="11" />	

    <motorStartDuration>2500</motorStartDuration>
    <motorStartSound file="sounds/JD_start.wav" pitchOffset="1" volume="1.0" />
    <motorSound file="sounds/JD_idle.wav" pitchOffset="1" pitchScale="0.02" pitchMax="1.25" volume="1.0" />
    <motorSoundRun file="sounds/JD_Run.wav" pitchOffset="1" pitchScale="0.02" pitchMax="1.35" volume="1.0" />
    <motorStopSound file="sounds/JD_stop.wav" pitchOffset="1" volume="1.0" />
    <aiMotorSound file="sounds/jd_ai.wav" pitchOffset="1" radius="25" innerRadius="4" volume="1.0" />
    <motorSoundLeave file="Sounds/jd_leave.wav" pitchOffset="1" radius="25" innerRadius="4" volume="0.4" />

    <tankicon index="21|4" />
    <batterieicon index="21|5" />

	<attachSound file="$data/vehicles/steerable/deutz/attach.wav" pitchOffset="1" />
    <compressedAirSound file="$data/vehicles/steerable/deutz/compressedAir.wav" pitchOffset="1" volume="1.0"/>
    <compressionSound file="$data/vehicles/steerable/deutz/compressorWork.wav" pitchOffset="1" volume="1.5"/>
    <aiMotorSound  file="$data/vehicles/steerable/kuhn/kuhnSPV_idle.wav" pitchOffset="1" radius="50" innerRadius="20" volume="1.25" />
	
	<powerIn file="sounds/jd_rpm_start.wav" pitchOffset="1" volume="1.6"/>
	<powerIdle file="sounds/jd_rpm_idle.wav" pitchOffset="1" volume="1.6"/>
	<powerOut file="sounds/jd_rpm_out.wav" pitchOffset="1" volume="1.6"/>

	<honkSound file="$dataS2/sounds/hornBig.wav" volume="1" radius="80" innerRadius="35" />



	<components count="6">
		<!-- komponent główny -->
       <component1 centerOfMass="0.000 0.000 -1.04206" solverIterationCount="190" />
		<!-- komponent osi -->
		<component2 centerOfMass="0 -1 0" solverIterationCount="190" />
		<!-- komponent prawego przedniego koła -->
		<component3 centerOfMass="0 -0.8 0" solverIterationCount="190" />
		<!-- komponent lewego przedniego koła -->
		<component4 centerOfMass="0 -0.8 0" solverIterationCount="190" />
		<!-- komponent prawego tylnego koła -->
		<component5 centerOfMass="0 -0.8 0" solverIterationCount="190" />
		<!-- komponent lewego tylnego koła -->
		<component6 centerOfMass="0 -0.8 0" solverIterationCount="190" />
		
		<!-- joint osi (componentJointIndex = 1) -->
		<joint component1="0" component2="1" index="1>0" rotLimit="0 0 8" 	transLimit="0 0 0" breakable="false"/>
		<!-- joint prawego przedniego koła (componentJointIndex = 2) -->
		<joint component1="1" component2="2" index="2>0" rotLimit="0 0 0" 	transLimit="0 0 0" breakable="false"/>
		<!-- joint lewego przedniego koła (componentJointIndex = 3) -->
		<joint component1="1" component2="3" index="3>0" rotLimit="0 0 0" 	transLimit="0 0 0" breakable="false"/>
		<!-- joint prawego tylnego koła (componentJointIndex = 4) -->
		<joint component1="0" component2="4" index="4>0" rotLimit="0 0 0" 	transLimit="0 0 0" breakable="false"/>
		<!-- joint lewego tylnego koła (componentJointIndex = 5) -->
		<joint component1="0" component2="5" index="5>0" rotLimit="0 0 0" 	transLimit="0 0 0" breakable="false"/>
		
		<!-- wyłączenie kolizji pomiędzy wszystkimi istniejącymi komponentami -->
		<collisionPair component1="0" component2="1" enabled="false"/>
		<collisionPair component1="1" component2="2" enabled="false"/>
		<collisionPair component1="1" component2="3" enabled="false"/>
		<collisionPair component1="1" component2="4" enabled="false"/>
		<collisionPair component1="1" component2="5" enabled="false"/>
		<collisionPair component1="0" component2="2" enabled="false"/>
		<collisionPair component1="0" component2="3" enabled="false"/>
		<collisionPair component1="0" component2="4" enabled="false"/>
		<collisionPair component1="0" component2="5" enabled="false"/>
    </components>

     <!-- główny kod modu orki -->
	<frontRightWheel wheelIndex="1" componentJointIndex="2" furrowDepth="0.17" fallSpeed="0.4" tireWidth="0.35" />
	<frontLeftWheel wheelIndex="2" componentJointIndex="3" furrowDepth="0.17" fallSpeed="0.4" tireWidth="0.35" />
	<backRightWheel wheelIndex="3" componentJointIndex="4" furrowDepth="0.17" fallSpeed="0.4" tireWidth="0.4" />
	<backLeftWheel wheelIndex="4" componentJointIndex="5" furrowDepth="0.17" fallSpeed="0.4" tireWidth="0.4" />
	<!-- koniec główego kodu modu orki -->
	
	<!-- opcjonalny kod modu orki -->
    <workExhaustParticleSystems count="1">
        <workExhaustParticleSystem1 node="28" file="$data/vehicles/particleSystems/exhaustParticleSystemBig.i3d" />
    </workExhaustParticleSystems>
	
	<increaseRpmDuringPloughing value="true" />
	<!-- koniec opcjonalnego kodu modu orki -->


    <attacherJoints>
        <attacherJoint index="14|0|0" rotationNode="14" maxRot="-14 0 0" rotationNode2="14|0" maxRot2="9 0 0" maxTransLimit="0 0.5 0" maxRotLimit="8 0 20" moveTime="1.5" shaft="0>35" ptoOutputNode="0>59" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d">
            <bottomArm rotationNode="15" referenceNode="15|0|0" zScale="-1" />
            <topArm rotationNode="16" translationNode="16|0|0" referenceNode="16|0|0|0" zScale="-1" />
        </attacherJoint>
        <attacherJoint index="17|0|0" rotationNode="17" maxRot="10 0 0" rotationNode2="17|0" maxRot2="-7 0 0" maxTransLimit="0 0.4 0" maxRotLimit="0 0 20" moveTime="1.5" shaft="0>36" ptoOutputNode="0>60" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d">
            <bottomArm rotationNode="18" referenceNode="18|0|0" zScale="1" />
            <topArm rotationNode="19" translationNode="19|0|0" referenceNode="19|0|0|0" zScale="1" />
        </attacherJoint>
	<attacherJoint index="0>62|0" jointType="quickeFrontloaderCoupling"/>
    </attacherJoints>	
	
	<trailerAttacherJoints>
        <trailerAttacherJoint index="0>43|0" maxRotLimit="10 80 80" shaft="0>35" ptoOutputNode="0>59" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d"/>
        <trailerAttacherJoint index="0>23" low="true" shaft="0>35" ptoOutputNode="0>59" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d"/>
		<trailerAttacherJoint index="0>33|3" shaft="0>36" maxRotLimit="10 80 80" />
    </trailerAttacherJoints>

	<moveableAttacher index="43" maxY="1.1" minY="0.74" /> 
  	
	<animParts>
	<animPart index="54" id="heckfenster818" showHelp="false" rotMin="0 0 0" rotMax="62 0 0" moveTime="2" />
	<animPart index="52" id="tuerLinks818" showHelp="false" rotMin="0.5 0 0" rotMax="-3 48 0" moveTime="1" />
	<animPart index="53" id="tuerRechts818" showHelp="false" rotMin="0.5 0 0" rotMax="-1 -47 -1.4" moveTime="1" />                                  
	</animParts>

	<hydraulics count="2">
	        <hydraulic1 index="0>63" punch="0>63|0" punchFixpoint="0>63|0|0" fixpoint="0>54|3" />
		<hydraulic2 index="0>64" punch="0>64|0" punchFixpoint="0>64|0|0" fixpoint="0>54|4" />
	</hydraulics>



	<AKBack jointIndexes="5 4" blockedIndexes="4 5 1" moveNode="31" Heigh5="0 0.629 -2.168" Heigh4="0 1.052 -2.168"/>
	<AKFront blockedIndexes="2 6 3" />
	<backHydro attacherIndices="0"/>
	<frontHydro attacherIndices="1" FoldOutAnim="foldOutFrontHydro"/>


	
   

	<lightsaddon lightsStayOn="true">
		<light type="brake" index="34|4" />
		<light type="dirLeft" index="34|1" />
		<light type="dirRight" index="34|2" />
		<light type="work" index="34|0" real="34|0|1" beam="34|0|0" helptext="ALHinten" inputName="ALHinten" stayOn="true" />
		<light type="work" index="34|3" real="34|3|1" beam="34|3|0" helptext="ALVorne" inputName="ALVorne" stayOn="true" />
		<light type="work" index="19" inputName="Ciezarek" stayOn="true" />
		<light type="work" index="61" inputName="Oslona" stayOn="true" />
		<light type="work" index="62" inputName="Konsola" stayOn="true" />
		<flashers soundfile="sounds/blinktick.wav" lowPitch="0.6" highPitch="0.8" volume="0.6" autoreturn="true" tolerance="0.9"/>
	</lightsaddon>


	<movingTools>
	<!-- attacher joint back bottom-->
	<movingTool index="14|0|0" verify="true"> 
            <dependentPart index="0>32|1" />
        </movingTool>	
		<movingTool index="18" verify="true"> 
            <dependentPart index="0>33|0" /> 
        </movingTool>	
	</movingTools>	

 	<animations>
        <animation name="foldOutFrontHydro">
            <part node="0>18|0|2" startTime="0" endTime="0.1" startRot="-74.916 23.544 0" endRot="0 23.544 0"/>
            <part node="0>18|0|3" startTime="0" endTime="0.1" startRot="-74.916 -23.544 0" endRot="0 -23.544 0"/>
        </animation>
    </animations>

	<movingParts>
	<movingPart index="0>33|0" referencePoint="0>18|0|1" referenceFrame="0>18|0|1">
			<translatingPart index="0>33|0|0" />
        </movingPart>
		
		<movingPart index="0>32|1" referencePoint="0>15|0|1" localReferencePoint="0>32|1|2" referenceFrame="0>32|4" invertZ="false">
            <dependentPart index="0>32|1|0" />
            <dependentPart index="0>32|3" />
            <dependentPart index="0>32|2" />
            <dependentPart index="0>32|0" />
        </movingPart>
		<movingPart index="0>32|1|0" referencePoint="0>15|0|1" referenceFrame="0>15|0|1">
        </movingPart>		
		<movingPart index="0>32|3" referencePoint="0>15|0|3" referenceFrame="0>15|0|3">
            <translatingPart index="0>32|3|0" />
        </movingPart> 
        <movingPart index="0>32|2" referencePoint="0>15|0|2" referenceFrame="0>15|0|2">
            <translatingPart index="0>32|2|0" />
        </movingPart>          
		<movingPart index="0>32|0" referencePoint="0>32|1|1" referenceFrame="0>32|1|1">
            <translatingPart index="0>32|0|0" />
        </movingPart>
	</movingParts>

    <animations>
        <animation name="foldOutFrontHydro">
            <part node="0>18|0|2" startTime="0" endTime="0.1" startRot="-74.916 23.544 0" endRot="0 23.544 0"/>
            <part node="0>18|0|3" startTime="0" endTime="0.1" startRot="-74.916 -23.544 0" endRot="0 -23.544 0"/>
        </animation>
    </animations>
    <movingParts>
        <movingPart index="0>33|0" referencePoint="0>18|0|1" referenceFrame="0>18|0|1">
			<translatingPart index="0>33|0|0" />
        </movingPart>
		
		<movingPart index="0>32|1" referencePoint="0>15|0|1" localReferencePoint="0>32|1|2" referenceFrame="0>32|4" invertZ="false">
            <dependentPart index="0>32|1|0" />
            <dependentPart index="0>32|3" />
            <dependentPart index="0>32|2" />
            <dependentPart index="0>32|0" />
        </movingPart>
		<movingPart index="0>32|1|0" referencePoint="0>15|0|1" referenceFrame="0>15|0|1">
        </movingPart>		
		<movingPart index="0>32|3" referencePoint="0>15|0|3" referenceFrame="0>15|0|3">
            <translatingPart index="0>32|3|0" />
        </movingPart> 
        <movingPart index="0>32|2" referencePoint="0>15|0|2" referenceFrame="0>15|0|2">
            <translatingPart index="0>32|2|0" />
        </movingPart>          
		<movingPart index="0>32|0" referencePoint="0>32|1|1" referenceFrame="0>32|1|1">
            <translatingPart index="0>32|0|0" />
        </movingPart> 
    </movingParts>
	<animatedDetails>
		<tachoZeiger  zeigerIndex="21|0|0" multiplicator="10" maxRotation="300" />  <!-- aktuelle km/h * multiplicator ergeben zeigerrotation (maxRot dient nur als begrenzung z.b. wenn der Trecker bergab schneller wird der Tacho nicht überdreht, normale maxkmh * multiplicator sollten in etwa maxRotation ergeben) -->
		<gasPedal pedalIndex="21|2|0" multiplicator="0.5" maxRotation="170" /> <!-- selbiges Prinzip wie beim Tachozeiger-->
		<tankWarnLeuchte index="21|1|1" warnValue="8" /> <!-- warnValue gibt an ab welchem Minimalinhalt die Leuchte angehen soll -->
	</animatedDetails>
	<interactiveComponents>
		<windows count="2">
			<window1 name="WarntafelRechts" mark="21|10|0|1" size="0.05" index="21|10|0|0" speedScale="1" clip="WarntafelRechtsClipsource" />
			<window2 name="WarntafelLinks" mark="21|10|1|1" size="0.05" index="21|10|1|0" speedScale="1" clip="WarntafelLinksClipsource" />
		</windows>
		<buttons count="6">
			<button1 name="BEL3WARN" mark="21|4" size="0.03" event="toggleWarningLights"/>
			<button2 name="BEL3RIGHT" mark="21|5" size="0.01" event="toggleRightIndicator"/>
			<button3 name="BEL3LEFT" mark="21|6" size="0.01" event="toggleLeftIndicator"/>
			<button4 name="AbL" mark="21|7" size="0.07" event="toggleFrontlights"/>
			<button5 name="ALHinten" mark="21|9" size="0.01" event="toggleFrontWorklights"/>
			<button6 name="ALVorne" mark="21|8" size="0.01" event="toggleBackWorklights"/>
		</buttons>
	</interactiveComponents>
	<controlPanels count="2" >
		<controlPanel1 index="21|11|0" />
		<controlPanel2 index="21|11|1" />
	</controlPanels>

		<operatingHours posX="0.7560" posY="0.1715" />
                <ESLimiter posX="0.7543" posY="0.1715" />

	<wheelParticleSystems file="PS/wheelParticleSystem.i3d" >
	<wheelParticleSystem node="0>42|0"  />
	<wheelParticleSystem node="0>42|1"  />
	<wheelParticleSystem node="0>42|2"  />
	<wheelParticleSystem node="0>42|3" />
        </wheelParticleSystems>

<dirt dirtInterval="0.5" cleaningInterval="10" updateInterval="0.12">
		<dirtComponent index="1>3" />	
		<dirtComponent index="2>1" />
		<dirtComponent index="2>1|0|0" />
		<dirtComponent index="2>1|0|1" />
		<dirtComponent index="3>1" />
		<dirtComponent index="3>1|0|0" />
		<dirtComponent index="3>1|0|1" />
		<dirtComponent index="4>1|0" />
		<dirtComponent index="4>1|1" />
		<dirtComponent index="4>1|2" />
		<dirtComponent index="4>1|2|0" />
		<dirtComponent index="5>1|0" />
		<dirtComponent index="5>1|1" />
		<dirtComponent index="5>1|2" />
		<dirtComponent index="5>1|2|0" />
		<dirtComponent index="0>57" />
		<dirtComponent index="0>56" />
		<dirtComponent index="0>55" />
		<dirtComponent index="0>54|2" />
		<dirtComponent index="0>53|0" />
		<dirtComponent index="0>52|0" />
		<dirtComponent index="0>51" />
		<dirtComponent index="0>51|0" />
		<dirtComponent index="0>51|1" />
		<dirtComponent index="0>66" />
		<dirtComponent index="0>18|0" />
		<dirtComponent index="0>18|0|2" />
		<dirtComponent index="0>18|0|3" />
		<dirtComponent index="0>19|0" />
		<dirtComponent index="0>43" />
		<dirtComponent index="0>41" />
		<dirtComponent index="0>32|0" />
		<dirtComponent index="0>32|1" />
		<dirtComponent index="0>32|1|0" />
		<dirtComponent index="0>61" />

	</dirt>

	
<blends2>
	<blend2 index="4>1|2" />
	<blend2 index="5>1|2" />
	</blends2>


	<schemaOverlay file="textures/vehicleSchema.dds" fileSelected="textures/vehicleSchemaSelected.dds" width="0.5" height="0.5" attacherJointPosition="0.5 -0.5">
        <attacherJoint position="1 0" rotation="0" invertX="false" />
        <attacherJoint position="0 0" rotation="0" invertX="true" />
        <attacherJoint position="1 0" rotation="0" invertX="false" />
        <attacherJoint position="1 0" rotation="0" invertX="false" />
    </schemaOverlay>

<loaderControlSystem node="0>62|1"/>
</vehicle>
