﻿<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="combine_animated">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>New Holland TC5.90</en>
        <de>New Holland TC5.90</de>
    </name>
    <typeDesc>$l10n_TypeDesc_Harvester</typeDesc>
    <filename>data/vehicles/steerable/newHolland/newHollandTC590.i3d</filename>

    <size width="6" length="12" lengthOffset="-1.5"/>

    <wheels autoRotateBackSpeed="2.0">
        <wheel rotSpeed="0"   restLoad="1.9" repr="0>0"                         radius="0.908" width="0.65" initialCompression="50" suspTravel="0.1" spring="70" damper="40" mass="0.375"   hasTyreTracks="true" />
        <wheel rotSpeed="0"   restLoad="1.9" repr="0>1"                         radius="0.908" width="0.65" initialCompression="50" suspTravel="0.1" spring="70" damper="40" mass="0.375"   hasTyreTracks="true" />
        <wheel rotSpeed="-1"  restLoad="3.8" repr="0>2|0" driveNode="0>2|0|0|0" radius="0.656" width="0.54" initialCompression="50" suspTravel="0.2" spring="25" damper="40" mass="0.17" hasTyreTracks="true" />
        <wheel rotSpeed="-1"  restLoad="3.8" repr="0>3|0" driveNode="0>3|0|0|0" radius="0.656" width="0.54" initialCompression="50" suspTravel="0.2" spring="25" damper="40" mass="0.17" hasTyreTracks="true" />
    </wheels>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0|0" linkNode="0>0"       filename="$data/vehicles/wheels/trelleborg/trelleborgTM2000_650_75R32.i3d" />
        <dynamicallyLoadedPart node="0|1" linkNode="0>1"       filename="$data/vehicles/wheels/trelleborg/trelleborgTM2000_650_75R32.i3d" />
        <dynamicallyLoadedPart node="0|0" linkNode="0>2|0|0|0" filename="$data/vehicles/wheels/trelleborg/trelleborgTM800_540_65R24.i3d" />
        <dynamicallyLoadedPart node="0|1" linkNode="0>3|0|0|0" filename="$data/vehicles/wheels/trelleborg/trelleborgTM800_540_65R24.i3d" />
    </dynamicallyLoadedParts>

    <differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.42" 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.39" differentialIndex1="0" differentialIndex2="1" /> <!-- front-back -->
    </differentials>

    <ackermannSteering rotSpeed="48" rotMax="35" rotCenterWheel1="0" rotCenterWheel2="1" />

    <motor torqueScale="1.144" minRpm="1000" maxRpm="2200" maxBackwardSpeed="15" brakeForce="9" lowBrakeForceScale="0.22" lowBrakeForceSpeedLimit="1" minForwardGearRatio="38" maxForwardGearRatio="130" backwardGearRatio="55">
        <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>

    <fuelCapacity>400</fuelCapacity>
    <fuelUsage>80</fuelUsage>

    <aiTurnThreshWidthScale value="0.98" />

    <cameras count="2">
        <camera1 index="0>4|0|0" rotatable="true" rotateNode="0>4|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="7" transMax="20" >
            <raycastNode index="0>16"/>
            <raycastNode index="0>17"/>
        </camera1>
        <camera2 index="0>4|1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" />
    </cameras>

    <lights>
        <light realLight="0>15|0" decoration="0>15|1" lightType="0"/>
        <light realLight="0>16|0" decoration="0>16|1" lightType="1"/>
    </lights>

    <brakeLights>
        <brakeLight index="0>17" />
    </brakeLights>

    <beaconLights>
        <beaconLight index="0>19|0" speed="0.015" filename="$data/vehicles/shared/beaconLight02.i3d"/>
        <beaconLight index="0>19|1" speed="0.015" filename="$data/vehicles/shared/beaconLight02.i3d"/>
    </beaconLights>

    <turnSignals>
        <turnSignalLeft index="0>18|0" />
        <turnSignalRight index="0>18|1" />
    </turnSignals>

    <turnOnSettings turnOffText="Turn_off_combine" turnOnText="Turn_on_combine" />

    <mirrors>
        <mirror index="0>33|0" />
    </mirrors>

    <indoorHud>
        <speed     numbers="0>36|0" precision="1" />
        <rpm       numbers="0>36|1" precision="0" />
        <fillLevel numbers="0>36|2" precision="0" />
        <fuel      animName="fuelDisplay" />
    </indoorHud>

    <steering index="0>7|0" indoorRotation="360" outdoorRotation="30" />

    <characterNode index="0>9|0" cameraMinDistance="1.5" filename="$dataS2/character/player/player.i3d" characterMesh="1" characterGloves="2" characterSkin="0" spineNode="0|0" leftArmIKChainId="leftArm" spineRotation="180 0 105" >
        <ikChains>
            <ikChain id="rightFoot" target="0>9|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>9|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>9|3" 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 -70" />
                <rotationNode index="0|0|0|1|0|0|0|0|0" rotation="0 0 -50" />
                <rotationNode index="0|0|0|1|0|0|0|1" rotation="-90 20 -40" />
                <rotationNode index="0|0|0|1|0|0|0|1|0" rotation="0 0 20" />
            </ikChain>
            <ikChain id="leftArm" target="0>7|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>

    <attacherJoints>
        <attacherJoint jointType="cutter" index="0>10|0|0" jointPositionOffset="0 0 -1.740" rotationNode="0>10|0" minRot="-17 0 0" maxRot="12 0 0" maxTransLimit="0 0 0" maxRotLimit="0 0 20" moveTime="2.5"  ptoOutputNode="0>10|1|3" ptoFilename="$data/vehicles/shared/powerTakeoffBlack.i3d" >
            <bottomArm rotationNode="0>10|1" />
        </attacherJoint>
        <attacherJoint index="0>43" jointType="trailerLow" maxRotLimit="10 80 50" minRotRotationOffset="0" allowsJointLimitMovement="false" />
    </attacherJoints>

    <enterReferenceNode index="0>" />

    <exitPoint index="0>5" />

    <motorStartDuration>2500</motorStartDuration>
    <attachSound file="$data/vehicles/shared/attach.wav" pitchOffset="1" />
    <threshingStartSound file="$data/vehicles/steerable/newHolland/newHollandTC590_startwork.wav" pitchOffset="1" />
    <threshingSound file="$data/vehicles/steerable/newHolland/newHollandTC590_work.wav" pitchOffset="1" pitchScale="0.001" pitchMax="1.1" radius="35" innerRadius="25" />
    <threshingStopSound file="$data/vehicles/steerable/newHolland/newHollandTC590_stopwork.wav" pitchOffset="1" />
    <motorStartSound file="$data/vehicles/steerable/newHolland/newHollandTC590_start.wav" pitchOffset="1" volume="1.4" />
    <motorSound file="$data/vehicles/steerable/newHolland/newHollandTC590_idle.wav" pitchOffset="1" pitchScale="0.00818" pitchMax="1.3" volume="1.4" radius="50" innerRadius="20" />
    <motorSoundRun file="$data/vehicles/steerable/krone/hydraulic_run.wav" pitchOffset="0.85" pitchScale="0.00825" pitchMax="1.35" volume="0.375" />
    <motorSoundRun2 file="$data/vehicles/shared/transmissionScorpion.wav" pitchOffset="1" volume="0.2" pitchMax="1.35" volumeMax="0.2"/>
    <motorStopSound file="$data/vehicles/steerable/caseIH/caseIH7130_stop.wav" pitchOffset="1" />
    <reverseDriveSound file="$data/vehicles/shared/reverseDrivingBeep.wav" volume="0.5" />
    <compressedAirSound file="$data/vehicles/shared/brakeBig.wav" pitchOffset="1" volume="1.0"/>
    <compressionSound file="$data/vehicles/shared/compressorWork.wav" pitchOffset="1" volume="1.5"/>
    <honkSound file="$data/vehicles/shared/horn.wav" volume="1" radius="70" innerRadius="10" />
    <cylinderedHydraulicSound file="$data/vehicles/shared/hydraulicUp.wav" pitchOffset="0.65" volume="0.72" />
    <hydraulicSound file="$data/vehicles/shared/hydraulicUp.wav" pitchOffset="0.55" volume="0.8" />
    <pipeSound file="$data/vehicles/shared/hydraulicUp.wav" pitchOffset="1" />

    <pipe numStates="2" unloadingStates="2" raycastNodeIndex="0>6|0|0" raycastDistance="6" foldMinState="1" foldMaxState="1">
        <node index="0>6|0" rotationSpeeds="0 15 0">
            <state1 rotation="0 0 0"/>
            <state2 rotation="0 95 0"/>
        </node>
        <node index="0>6|0|5|0" rotationSpeeds="9.4 0 15">
            <state1 rotation="0 0 -95"/>
            <state2 rotation="60 0 0"/>
        </node>
    </pipe>

    <turnedOnRotationNodes>
        <turnedOnRotationNode index="0>22"       type="combine" rotSpeed="100"  rotAxis="1" turnOnFadeTime="1" turnOffFadeTime="1" />
        <turnedOnRotationNode index="0>23"       type="combine" rotSpeed="700"  rotAxis="1" turnOnFadeTime="4" turnOffFadeTime="3" />
        <turnedOnRotationNode index="0>26"       type="combine" rotSpeed="700"  rotAxis="1" turnOnFadeTime="4" turnOffFadeTime="3" />
        <turnedOnRotationNode index="0>10|1|1"   type="combine" rotSpeed="-700" rotAxis="1" turnOnFadeTime="4" turnOffFadeTime="3" />
    </turnedOnRotationNodes>

    <combineThreshingScrollers>
        <combineThreshingScroller index="0>10|1|0" scrollSpeed="1" scrollLength="1" shaderParameterName="offsetUV" shaderParameterComponent="1" toggleVisibility="false" turnOnFadeTime="1" turnOffFadeTime="1"/>
    </combineThreshingScrollers>

    <foldingParts startMoveDirection="1" turnOnFoldMinLimit="0" turnOnFoldMaxLimit="0.02" >
        <foldingPart animationName="foldGrainTank" speedScale="1.1" />
    </foldingParts>

    <animations>
        <animation name="foldGrainTank">
            <part node="0>21|0" startTime="0" endTime="5" startRot="-14 0 0" endRot="0 0 0"/>
        </animation>
        <animation name="enterAnimation">
            <part node="0>27" startTime="0" duration="1" startRot="0 0 0" endRot="0 -90 0" />
        </animation>
        <animation name="fuelDisplay">
            <part node="0>36|3|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -120" />
        </animation>
    </animations>

    <movingTools>
        <!-- graintank -->
        <movingTool index="0>21|0" >
            <dependentPart index="0>21|1" />
            <dependentPart index="0>21|2" />
        </movingTool>
        <!-- ladder -->
        <movingTool index="0>27">
            <dependentPart index="0>28" />
        </movingTool>
        <!-- attacher -->
        <movingTool index="0>10|1">
            <dependentPart index="0>25" />
            <dependentPart index="0>41" />
        </movingTool>
        <!-- pipe -->
        <movingTool index="0>6|0">
            <dependentPart index="0>24" />
        </movingTool>
    </movingTools>

    <movingParts>
        <!-- pipe hydraulic -->
        <movingPart index="0>24" referencePoint="0>6|0|3" referenceFrame="0>">
            <translatingPart index="0>24|0" />
        </movingPart>

        <!-- graintank -->
        <movingPart index="0>21|1" referencePoint="0>21|0|1" referenceFrame="0>" playSound="false">
            <dependentPart index="0>21|3" />
        </movingPart>
        <movingPart index="0>21|2" referencePoint="0>21|0|0" referenceFrame="0>" >
            <translatingPart index="0>21|2|0" />
        </movingPart>
        <movingPart index="0>21|3" referencePoint="0>21|1|0" referenceFrame="0>" >
            <translatingPart index="0>21|3|0" />
        </movingPart>
        <!-- ladder chains -->
        <movingPart index="0>28" referencePoint="0>27|0" referenceFrame="0>" scaleZ="true" playSound="false" />
        <!-- attacher -->
        <movingPart index="0>25" referencePoint="0>10|1|2" referenceFrame="0>" playSound="false">
            <translatingPart index="0>25|0" />
        </movingPart>
        <movingPart index="0>41" localReferencePoint="0>10|1|2" referencePoint="0>10|1|4" referenceFrame="0>42" playSound="false">
            <dependentPart index="0>41|0" />
            <dependentPart index="0>39|0|0" />
            <dependentPart index="0>39|0" />
        </movingPart>
        <movingPart index="0>41|0"   referencePoint="0>10|1|4" referenceFrame="0>" scaleZ="true" playSound="false" />
        <movingPart index="0>39|0|0" referenceFrame="0>10|1|5" moveToReferenceFrame="true" playSound="false" />
        <movingPart index="0>39|0"   referenceFrame="0>41|0"   moveToReferenceFrame="true" playSound="false" />

        <!-- steeringbars -->
        <movingPart index="0>2|0|2" referencePoint="0>3|0|2" referenceFrame="0>" scaleZ="true" playSound="false" isActiveDirty="true" >
            <dependentPart index="0>31" />
            <dependentPart index="0>32" />
        </movingPart>
        <movingPart index="0>29" referencePoint="0>2|0|1" referenceFrame="0>" playSound="false">
            <translatingPart index="0>29|0" />
        </movingPart>
        <movingPart index="0>31" referencePoint="0>3|0|1" referenceFrame="0>" playSound="false">
            <translatingPart index="0>31|0" />
        </movingPart>
    </movingParts>

    <fillEffect>
        <effectNode node="0|0|0" linkNode="0>12|0" position="0 0 0" materialType="unloading" materialTypeId="3" delay="0"   filename="$data/vehicles/particleAnimations/newHolland/newHollandTC590.i3d" />
    </fillEffect>

    <pipeEffect>
        <effectNode node="1|0|0" linkNode="0>6|0|1" position="0 0 0" materialType="unloading" materialTypeId="3" delay="0"   filename="$data/vehicles/particleAnimations/newHolland/newHollandTC590.i3d" />
        <effectNode node="1|0|1" linkNode="0>6|0|1" position="0 0 0" materialType="smoke"     materialTypeId="1" delay="0.1" filename="$data/vehicles/particleAnimations/newHolland/newHollandTC590.i3d" />
    </pipeEffect>

    <strawEffect>
        <effectNode node="2|0|0" linkNode="0>12|2" materialType="straw"   materialTypeId="1" delay="0" filename="$data/vehicles/particleAnimations/newHolland/newHollandTC590.i3d" />
        <effectNode node="2|0|1" linkNode="0>12|2" materialType="chopper" materialTypeId="1" delay="0" filename="$data/vehicles/particleAnimations/newHolland/newHollandTC590.i3d" />
    </strawEffect>

    <chopperEffect>
        <effectNode node="3|0|0" linkNode="0>12|1" materialType="chopper" materialTypeId="1" delay="0" filename="$data/vehicles/particleAnimations/newHolland/newHollandTC590.i3d" />
        <effectNode node="3|0|1" linkNode="0>12|1" materialType="chopper" materialTypeId="1" delay="0" filename="$data/vehicles/particleAnimations/newHolland/newHollandTC590.i3d" />
        <effectNode node="3|0|2" linkNode="0>12|1" materialType="chopper" materialTypeId="1" delay="0" filename="$data/vehicles/particleAnimations/newHolland/newHollandTC590.i3d" />
    </chopperEffect>

    <strawParticleSystems toggleTime="4300" />

    <chopperParticleSystems toggleTime="4300" >
        <chopperParticleSystem type="wheat"  node="0>12|1" psRootNode="0|0" file="$data/vehicles/particleAnimations/newHolland/newHollandTC590Particles.i3d" />
        <chopperParticleSystem type="barley" node="0>12|1" psRootNode="0|0" file="$data/vehicles/particleAnimations/newHolland/newHollandTC590Particles.i3d" />
        <chopperParticleSystem type="rape"   node="0>12|1" psRootNode="0|0" file="$data/vehicles/particleAnimations/newHolland/newHollandTC590Particles.i3d" />
        <chopperParticleSystem type="maize"  node="0>12|1" psRootNode="0|1" file="$data/vehicles/particleAnimations/newHolland/newHollandTC590Particles.i3d" />
    </chopperParticleSystems>

    <exhaustEffects>
        <exhaustEffect index="0>30" filename="$data/vehicles/particleAnimations/shared/exhaust.i3d" minRpmColor="0.9 0.9 0.9 0.05" maxRpmColor="0.9 0.9 0.9 0.2" minRpmScale="0.08" maxRpmScale="0.6" forwardXRotations="105 0 220" steerZRotations="180 0 -180" />
    </exhaustEffects>

    <fillVolumes>
        <fillVolume index="0>8|0" maxAllowedHeapAngle="20" maxDelta="0.5" />
    </fillVolumes>

    <fillVolumeUnloadInfo index="0>34" width="0.4" length="0.4" />
    <fillVolumeLoadInfo index="0>35" width="0.4" length="0.4" />
    <fillVolumeDischargeInfo index="0>6|0|4" width="0.4" length="0.4" />

    <capacity>6400</capacity>
    <overloadingCapacity>180</overloadingCapacity>
    <fillTypes fillTypes="wheat rape maize barley" />
    <allowFillFromAir value="false" />

    <combineSize>2</combineSize>

    <enterAnimation name="enterAnimation" />

    <workAreas>
        <workArea startIndex="0>11|0" widthIndex="0>11|1" heightIndex="0>11|2" type="combine" />
    </workAreas>

    <trailerTriggers>
        <trailerTrigger index="0>13" />
    </trailerTriggers>
    <aiTrafficCollisionTrigger index="0>14" />

    <skinnedNodes>
        <skinnedNode index="0>40" />
        <skinnedNode index="0>6|0|6" moveToZero="true"/>
    </skinnedNodes>

    <chopperSwitch available="true" />

    <washable dirtDuration="300" washDuration="1" workMultiplier="2" />

    <driveGroundParticleSystems>
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="1" />
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="2" />
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="3" />
        <driveGroundParticleSystem file="$data/vehicles/particleAnimations/shared/drivingParticleSystem.i3d" wheel="4" />
    </driveGroundParticleSystems>

    <components count="1">
        <component1 centerOfMass="0 0.98 -0.5" solverIterationCount="10" />
    </components>

    <schemaOverlay file="$dataS2/menu/schemas/vehicleSchema.png" fileSelected="$dataS2/menu/schemas/vehicleSchemaSelected.png" fileTurnedOn="$dataS2/menu/schemas/vehicleSchemaTurnedOn.png" fileSelectedTurnedOn="$dataS2/menu/schemas/vehicleSchemaSelectedTurnedOn.png" width="0.5" height="0.5" attacherJointPosition="0.5 0">
        <attacherJoint position="0 0" rotation="0" invertX="true" />
        <attacherJoint position="1 0" rotation="0" invertX="false" />
    </schemaOverlay>
</vehicle>
