<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="tractor">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <filename>buehrer6135A.i3d</filename>
    <size width="3.5" length="6"/>
    <wheels autoRotateBackSpeed="2">
        <wheel rotSpeed="1" repr="0>0" driveNode="0>0|0" radius="0.7" restLoad="4.3" initialCompression="50" suspTravel="0.18" spring="35" damper="40" hasTireTracks="true" tireTrackAtlasIndex="0" fenderNode="0>0|2" mass="0.15" hasParticles="true"/>
        <wheel rotSpeed="1" repr="0>1" driveNode="0>1|0" radius="0.7" restLoad="4.3" initialCompression="50" suspTravel="0.18" spring="35" damper="40" hasTireTracks="true" tireTrackAtlasIndex="0" fenderNode="0>1|2" fenderRotMax="29" mass="0.15" hasParticles="true"/>
        <wheel rotSpeed="0" repr="0>2" radius="0.895" restLoad="3.0" initialCompression="50" suspTravel="0.15" spring="35" damper="40" hasTireTracks="true" tireTrackAtlasIndex="0" mass="0.2" hasParticles="true"/>
        <wheel rotSpeed="0" repr="0>3" radius="0.895" restLoad="3.0" initialCompression="50" suspTravel="0.15" spring="35" damper="40" hasTireTracks="true" tireTrackAtlasIndex="0" mass="0.2" hasParticles="true"/>
    </wheels>
    <dynamicallyLoadedParts/>
    <ackermannSteering rotSpeed="60" rotMax="35" rotCenterWheel1="2" rotCenterWheel2="3"/>
    <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>
    <motor torqueScale="0.598" minRpm="1000" maxRpm="2500" maxBackwardSpeed="15" brakeForce="2.5" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1" minForwardGearRatio="20.2" maxForwardGearRatio="131" 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>120</fuelCapacity>
    <fuelUsage>13</fuelUsage>
    <cameras count="2">
        <camera1 index="4|0" rotatable="true" rotateNode="4" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="35">
            <raycastNode index="0>6"/>
            <raycastNode index="0>7"/>
        </camera1>
        <camera2 index="5" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true"/>
    </cameras>
    <lights>
        <!--to be adjusted manually-->
        <low>
            <light realLight="0>9" decoration="0>28" lightTypes="0"/>
            <light realLight="0>10" decoration="0>29" lightTypes="1"/>
        </low>
        <!--to be adjusted manually-->
        <high>
            <light realLight="0>9" decoration="0>28" lightTypes="0"/>
            <light realLight="0>10" decoration="0>29" lightTypes="1"/>
        </high>
        <!--to be adjusted manually-->
        <states>0 1 2</states>
    </lights>
    <brakeLights>
        <brakeLight decoration="0>34"/>
    </brakeLights>
    <beaconLights>
        <beaconLight index="0>30" speed="0.015" filename="$data/shared/beaconLights/beaconLight02.i3d"/>
    </beaconLights>
    <turnLights>
        <turnLightLeft decoration="0>35|0"/>
        <turnLightRight decoration="0>35|1"/>
    </turnLights>
    <mirrors>
        <mirror index="0>36|0"/>
        <mirror index="0>36|1"/>
        <mirror index="0>36|2"/>
    </mirrors>
    <indoorHud>
        <fuel animName="fuelDisplay"/>
        <rpm animName="rpmDisplay"/>
    </indoorHud>
    <enterReferenceNode index="0>"/>
    <exitPoint index="0>8"/>
    <attacherJoints comboDuration="2">
        <attacherJoint index="0>11|0|0" rotationNode="0>11" lowerRotation="6 0 0" upperRotation="21 0 0" rotationNode2="0>11|0" lowerRotation2="-6 0 0" upperRotation2="-14 0 0" lowerRotLimit="0 0 20" lowerTransLimit="0 0.5 0" moveTime="2.5" comboTime="1">
            <bottomArm rotationNode="0>12" translationNode="0>12|0" referenceNode="0>12|0|0" zScale="-1"/>
            <topArm rotationNode="0>12" translationNode="0>12|0" referenceNode="0>12|0|0" zScale="-1"/>
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint index="0>16|0|0" rotationNode="0>16" lowerRotation="-18 0 0" upperRotation="-50 0 0" rotationNode2="16|0" lowerRotation2="18 0 0" upperRotation2="41 0 0" lowerRotLimit="0 0 20" lowerTransLimit="0 0.4 0" moveTime="2.5" comboTime="0">
            <bottomArm rotationNode="0>17" translationNode="17|0" referenceNode="17|0|0" zScale="1"/>
            <topArm rotationNode="0>17" translationNode="17|0" referenceNode="17|0|0" zScale="1"/>
            <schema position="0 0" rotation="0" invertX="true"/>
        </attacherJoint>
        <attacherJoint index="0>19|0" jointType="trailer" allowsJointLimitMovement="false" upperRotationOffset="0" lowerRotLimit="10 80 80" transNode="0>19" transNodeMinY="0.62" transNodeMaxY="1.1" comboTime="1">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint index="0>21" jointType="trailerLow" allowsJointLimitMovement="false" upperRotationOffset="0" lowerRotLimit="10 50 50" comboTime="1">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
    </attacherJoints>
    <movingTools>
        <movingTool index="0>12">
            <dependentPart index="0>14"/>
            <dependentPart index="0>15"/>
            <dependentPart index="0>33"/>
        </movingTool>
        <movingTool index="0>17">
            <dependentPart index="0>31"/>
        </movingTool>
    </movingTools>
    <movingParts>
        <!-- attacher joint back bottom cylinder 1 -->
        <movingPart index="0>14" referencePoint="0>15|1" referenceFrame="0>15|1" invertZ="true">
            <translatingPart index="0>14|0"/>
        </movingPart>
        <!-- attacher joint back bottom cylinder 2 -->
        <movingPart index="0>15" referencePoint="0>12|0|1" localReferencePoint="0>15|2" referenceFrame="0>" invertZ="true">
            <dependentPart index="0>15|2"/>
        </movingPart>
        <!-- attacher joint back bottom cylinder 2b -->
        <movingPart index="0>15|2" referencePoint="0>12|0|1" referenceFrame="0>15|0" invertZ="true"/>
        <!-- attacher joint front bottom cylinder -->
        <movingPart index="0>31" referencePoint="0>17|0|1" referenceFrame="0>17|0|1">
            <dependentPart index="0>31|0"/>
        </movingPart>
        <!-- lowerlink -->
        <movingPart index="0>33" referencePoint="0>12|0|2" referenceFrame="0>" invertZ="true" scaleZ="true"/>
        <!-- steering -->
        <movingPart index="0>0|1" referencePoint="0>1|1" referenceFrame="0>" scaleZ="true" playSound="false" isActiveDirty="true"/>
    </movingParts>
    <steering index="0>23|0" indoorRotation="540" outdoorRotation="45"/>
    <animations>
        <animation name="fuelDisplay">
            <part node="0>36|3|1" startTime="0" endTime="1" startRot="-43 0 0" endRot="-43 -30 40"/>
        </animation>
        <animation name="rpmDisplay">
            <part node="0>36|3|0" startTime="0" endTime="1" startRot="-40 40 -20" endRot="-40 -200 -20"/>
        </animation>
    </animations>
    <characterNode index="0>24|0" cameraMinDistance="2.0" filename="$dataS2/character/player/player.xml" spineRotation="180 0 104">
        <target ikChain="rightFoot" targetNode="0>24|1" setDirty="true"/>
        <target ikChain="leftFoot" targetNode="0>24|2" setDirty="true"/>
        <target ikChain="rightArm" targetNode="0>23|0|0" setDirty="true"/>
        <target ikChain="leftArm" targetNode="0>23|0|1" setDirty="true"/>
    </characterNode>
    <ai>
        <trafficCollisionTrigger index="0>25"/>
    </ai>
    <exhaustEffects>
        <!--TODO: adjust xzRotationOffset, xzRotationsForward, xzRotationsBackward, xzRotationsLeft, xzRotationsRight-->
        <exhaustEffect filename="$data/particleSystems/shared/exhaust.i3d" index="0>26" minRpmColor="0.9 0.9 0.9 0.05" maxRpmColor="0.9 0.9 0.9 0.2" minRpmScale="0.05" maxRpmScale="0.4" xzRotationOffset="0 0" xzRotationsForward="0 0" xzRotationsBackward="0 0" xzRotationsLeft="0 0" xzRotationsRight="0 0"/>
    </exhaustEffects>
    <motorStartDuration>2500</motorStartDuration>
    <attachSound file="$data/sounds/attach.wav" pitchOffset="1"/>
    <motorStartSound file="Sounds/buehrer6135_start.wav" pitchOffset="1" volume="1.25"/>
    <motorSound file="Sounds/buehrer6135_idle.wav" pitchOffset="1" pitchScale="0.02" pitchMax="1.55" volume="1.25" radius="50" innerRadius="20"/>
    <motorSoundRun file="Sounds/buehrer6135_run.wav" pitchOffset="0.45" pitchScale="0.026" pitchMax="1.35" volume="1.3"/>
    <motorSoundRun2 file="$data/vehicles/shared/transmissionOld.wav" pitchOffset="0.65" volume="0.2" pitchMax="1.4" volumeMax="0.45"/>
    <motorStopSound file="Sounds/buehrer6135_stop.wav" pitchOffset="1" volume="1.5"/>
    <compressedAirSound file="$data/sounds/technicalAccessories/brakeOld.wav" pitchOffset="1" volume="2"/>
    <compressionSound file="$data/sounds/technicalAccessories/compressor_idle.wav" pitchOffset="1" volume="1.5"/>
    <honkSound file="$dataS2/sounds/horn.wav" volume="1" innerRadius="35" radius="80"/>
    <washable dirtDuration="50" washDuration="1" workMultiplier="4"/>
    <components count="1">
        <component1 centerOfMass="0.05 0.91 0.35" solverIterationCount="10"/>
    </components>
    <schemaOverlay file="$dataS2/menu/schemas/vehicleSchema.png" fileSelected="$dataS2/menu/schemas/vehicleSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0.5 0"/>
    <storeData>
        <name>
            <de>Massey Ferguson 8140</de>
            <en>Massey Ferguson 8140</en>
        </name>
        <functions>
            <function>$l10n_function_tractor</function>
        </functions>
        <specs>
            <neededPower>264</neededPower>
        </specs>
        <image>store_buehrer6135A.png</image>
        <price>75200</price>
        <dailyUpkeep>92</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>MASSEYFERGUSON</brand>
        <category>tractors</category>
    </storeData>
</vehicle>
