<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="tractor_articulatedAxis">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <name>
        <en>New Holland T9.560</en>
        <de>New Holland T9.560</de>
    </name>
    <filename>data/vehicles/steerable/newHolland/newHollandT9560.i3d</filename>

    <size width="4.5" length="10" />

    <wheels autoRotateBackSpeed="2">
        <wheel rotSpeed="0"  restLoad="5.2" repr="0>0" radius="1.05" width="0.9" initialCompression="75" suspTravel="0.1" spring="85" damper="90" mass="0.71" hasTyreTracks="true" />
        <wheel rotSpeed="0"  restLoad="5.2" repr="0>1" radius="1.05" width="0.9" initialCompression="75" suspTravel="0.1" spring="85" damper="90" mass="0.71" hasTyreTracks="true" />
        <wheel rotSpeed="0"  restLoad="4.5" repr="1>0" radius="1.05" width="0.9" initialCompression="75" suspTravel="0.1" spring="85" damper="90" mass="0.71" hasTyreTracks="true" />
        <wheel rotSpeed="0"  restLoad="4.5" repr="1>1" radius="1.05" width="0.9" initialCompression="75" suspTravel="0.1" spring="85" damper="90" mass="0.71" hasTyreTracks="true" />
    </wheels>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0|1" linkNode="0>0" filename="$data/vehicles/wheels/trelleborg/trelleborgTM900_900_60R42.i3d" />
        <dynamicallyLoadedPart node="0|0" linkNode="0>1" filename="$data/vehicles/wheels/trelleborg/trelleborgTM900_900_60R42.i3d" />
        <dynamicallyLoadedPart node="0|1" linkNode="1>0" filename="$data/vehicles/wheels/trelleborg/trelleborgTM900_900_60R42.i3d" />
        <dynamicallyLoadedPart node="0|0" linkNode="1>1" filename="$data/vehicles/wheels/trelleborg/trelleborgTM900_900_60R42.i3d" />
    </dynamicallyLoadedParts>

    <differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.4" wheelIndex1="0" wheelIndex2="1" /> <!-- front left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.4" wheelIndex1="2" wheelIndex2="3" /> <!-- back left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.1" differentialIndex1="0" differentialIndex2="1" /><!-- front-back -->
    </differentials>

    <motor torqueScale="2.455" minRpm="1000" maxRpm="2200" maxBackwardSpeed="15" brakeForce="18" 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>

    <fuelCapacity>1404</fuelCapacity>
    <fuelUsage>280</fuelUsage>

    <cameras count="2">
        <camera1 index="0>2|0|0" rotatable="true" rotateNode="0>2|0" limit="true" rotYSteeringRotSpeed="-22.5" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="5" transMax="35" >
            <raycastNode index="0>13|0"/>
            <raycastNode index="0>13|1"/>
            <raycastNode index="0>13|2"/>
            <raycastNode index="1>2"/>
        </camera1>
        <camera2 index="0>2|1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" />
    </cameras>

    <lights count="2">
        <light realLight="0>4"  decoration="0>9" lightType="0"/>
        <light decoration="1>3" lightType="0"/>
        <light realLight="1>6"  decoration="1>8" lightType="1"/>
        <light                  decoration="0>11" lightType="1"/>
    </lights>

    <brakeLights>
        <brakeLight index="1>4" />
    </brakeLights>

    <beaconLights>
        <beaconLight index="0>12|0" speed="0.015" filename="$data/vehicles/shared/beaconLight02.i3d"/>
        <beaconLight index="0>12|1" speed="0.015" filename="$data/vehicles/shared/beaconLight02.i3d"/>
    </beaconLights>

    <turnSignals>
        <turnSignalLeft index="0>10|0" />
        <turnSignalRight index="0>10|1" />
        <turnSignalLeft index="1>5|0" />
        <turnSignalRight index="1>5|1" />
    </turnSignals>

    <mirrors>
        <mirror index="0>24|0" />
    </mirrors>

    <indoorHud>
        <speed numbers="0>24|1|1" precision="1" />
        <fuel animName="fuelDisplay" />
    </indoorHud>

    <steering index="0>5|0" indoorRotation="540" outdoorRotation="50" />
    <enterReferenceNode index="0>" />
    <exitPoint index="0>3" />

    <attachSound file="$data/vehicles/shared/attach.wav" pitchOffset="1" />
    <motorStartSound file="$data/vehicles/steerable/newHolland/newHollandT9560_start.wav" pitchOffset="0.85" volume="1" />
    <motorSound file="$data/vehicles/steerable/newHolland/newHollandT9560_idle.wav" pitchOffset="0.85" pitchScale="0.009" pitchMax="1.45" volume="1" radius="50" innerRadius="20" />
    <motorSoundRun file="$data/vehicles/steerable/caseIH/caseIHMagnum380_run.wav" pitchOffset="0.52" pitchScale="0.01851" pitchMax="1.4" volume="0.825" />
	<motorSoundRun2 file="$data/vehicles/shared/transmissionCVT.wav" pitchOffset="0.85" volume="0.35" pitchMax="2" volumeMax="0.525"/>
    <motorStopSound file="$data/vehicles/steerable/newHolland/newHollandT8320_stop.wav" pitchOffset="0.785" volume="1" />
    <compressedAirSound file="$data/vehicles/shared/brakeBig.wav" pitchOffset="1" volume="1.25"/>
    <compressionSound file="$data/vehicles/shared/brakeBig.wav" pitchOffset="1" volume="1.5"/>
    <cylinderedHydraulicSound file="$data/vehicles/shared/hydraulicUp.wav" pitchOffset="0.7" volume="0.4" />
    <hydraulicSound file="$data/vehicles/shared/hydraulicUp.wav" pitchOffset="0.55" volume="0.8" />
    <honkSound file="$data/vehicles/shared/hornBig.wav" volume="1" radius="70" innerRadius="10" />

    <exhaustEffects>
        <exhaustEffect index="0>7" 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="-300 50 50" forwardZRotations="-100 0 0" steerXRotations="0 0 0" steerZRotations="-100 0 100" />
    </exhaustEffects>

    <exhaustFlap index="0>17|0" maxRot="95" />

    <characterNode index="0>6|0" cameraMinDistance="2.5" filename="$dataS2/character/player/player.i3d" characterMesh="1" characterGloves="2" characterSkin="0" spineNode="0|0" leftArmIKChainId="leftArm" rightArmIKChainId="rightArm" spineRotation="180 0 105" >
        <ikChains>
            <ikChain id="rightFoot" target="0>6|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>6|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>5|0|0" 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 20 -40" />
                <rotationNode index="0|0|0|1|0|0|0|1|0" rotation="0 0 -40" />
            </ikChain>
            <ikChain id="leftArm" target="0>5|0|1" targetOffset="-0.02 0.046 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>

    <aiTrafficCollisionTrigger index="0>14" />

    <attacherJoints>
        <attacherJoint index="1>11|0|0" rotationNode="1>11" rootNode="1>" minRot="31 0 0" minRot2="-20 0 0" maxRot="0 0 0" rotationNode2="1>11|0" maxRot2="0 0 0" maxTransLimit="0 0.5 0" maxRotLimit="0 0 20" moveTime="2" ptoOutputNode="1>10" ptoFilename="$data/vehicles/shared/powerTakeoff.i3d">
            <bottomArm rotationNode="1>12" translationNode="1>12|0" referenceNode="1>12|0|0" zScale="-1" />
        </attacherJoint>
        <!-- trailer attacher -->
        <attacherJoint index="0>16" jointType="trailer" maxRotLimit="20 85 85" minRotRotationOffset="0" allowsJointLimitMovement="false" />
        <attacherJoint index="1>9" jointType="trailerLow" maxRotLimit="10 50 50" minRotRotationOffset="0" allowsJointLimitMovement="false" ptoOutputNode="1>10" ptoFilename="$data/vehicles/shared/powerTakeoff.i3d" rootNode="1>"/>
    </attacherJoints>

    <movingTools>
        <!-- attacher joint back bottom-->
        <movingTool index="1>12">
            <!-- bottom arm -->
            <dependentPart index="1>14" />
        </movingTool>
    </movingTools>

    <movingParts>
        <movingPart index="1>14" referencePoint="1>12|0|0" localReferencePoint="1>14|0" referenceFrame="1>" playSound="false" >
            <dependentPart index="1>14|0" />
        </movingPart>
        <movingPart index="1>14|0" referencePoint="1>12|0|0" referenceFrame="1>19" playSound="false" >
            <dependentPart index="1>16" />
        </movingPart>

        <!-- bottom arm -->
        <movingPart index="1>16" referencePoint="1>14|0|0" referenceFrame="1>" scaleZ="true" playSound="false" >
            <dependentPart index="1>15" />
        </movingPart>

        <!-- main arm -->
        <movingPart index="1>15" referencePoint="1>16|0|0" localReferencePoint="1>15|0" referenceFrame="1>" playSound="false" >
            <dependentPart index="1>15|0" />
            <dependentPart index="1>13" />
        </movingPart>
        <!-- lower arm rot -->
        <movingPart index="1>15|0" referencePoint="1>16|0|0" referenceFrame="1>16|0|0" playSound="false" >
            <dependentPart index="1>15|0|0" />
            <dependentPart index="1>15|0|1" />
        </movingPart>
        <!-- main arm hydraulic -->
        <movingPart index="1>13" referencePoint="1>15|1" referenceFrame="1>15|1" playSound="false" >
            <translatingPart index="1>13|0" />
        </movingPart>
        <!-- lower arms -->
        <movingPart index="1>15|0|0" referencePoint="1>16|0|0|0" referenceFrame="0>" scaleZ="true" playSound="false" />
        <movingPart index="1>15|0|1" referencePoint="1>16|0|0|1" referenceFrame="0>" scaleZ="true" playSound="false" />

        <movingPart index="1>20|0|0" referencePoint="0>20" referenceFrame="1>20|0|1" limitedAxis="2" isActiveDirty="true" playSound="false" >
            <dependentPart index="1>20|0|0|0" />
        </movingPart>
        <movingPart index="1>20|0|0|0" referencePoint="0>20" referenceFrame="1>20|0|1" limitedAxis="1" playSound="false" />

        <movingPart index="0>18" referencePoint="1>17" referenceFrame="1>" isActiveDirty="true" playSound="false" >
            <translatingPart index="0>18|0" />
        </movingPart>
        <movingPart index="0>19" referencePoint="1>18" referenceFrame="1>" isActiveDirty="true" playSound="false" >
            <translatingPart index="0>19|0" />
        </movingPart>
        <!-- pipes -->
        <movingPart index="1>21" referencePoint="0>21" referenceFrame="0>" scaleZ="true" isActiveDirty="true" playSound="false" />
        <movingPart index="1>22" referencePoint="0>22" referenceFrame="0>" scaleZ="true" isActiveDirty="true" playSound="false" />
        <movingPart index="1>23" referencePoint="0>23" referenceFrame="0>" scaleZ="true" isActiveDirty="true" playSound="false" />
    </movingParts>

    <animations>
        <animation name="fuelDisplay">
            <part node="0>24|1|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -104" />
        </animation>
    </animations>

    <speedRotatingParts>
        <speedRotatingPart index="1>20|0" wheelIndex="2" wheelScale="2"/>
    </speedRotatingParts>

    <articulatedAxis componentJointIndex="0" anchorActor="0" rotSpeed="-45" rotMax="33" rotMin="-33" />

    <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>

    <washable dirtDuration="50" washDuration="1" workMultiplier="4" />

    <components count="2">
        <component1 centerOfMass="0 1.1 1.4" solverIterationCount="10" />
        <component2 centerOfMass="0 1.1 -1.3" solverIterationCount="10" />
        <joint component1="0" component2="1" index="0>15" rotLimit="0 0 0" transLimit="0 0 0" breakable="false"/>
    </components>

    <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" />
        <attacherJoint position="0 0" rotation="0" invertX="true" />
        <attacherJoint position="1 0" rotation="0" invertX="false" />
    </schemaOverlay>

</vehicle>
