<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="tractor">
    <annotation>OM Leon/ Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>D4000</name>
        <specs>
            <power>38</power>
            <maxSpeed>28</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_tractor</function>
        </functions>
        <image>store/store_bucherD4000.png</image>
        <price>12000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>BUCHER</brand>
        <category>tractorsS</category>
        <vertexBufferMemoryUsage>412392</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>70530</indexBufferMemoryUsage>
        <textureMemoryUsage>8760264</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>
    <base>
        <typeDesc>$l10n_typeDesc_tractor</typeDesc>
        <filename>bucher/bucherD4000.i3d</filename>
        <size width="3.5" length="5"/>
        <components>
            <component centerOfMass="0 0.5 0.5" solverIterationCount="10"/>
        </components>
        <schemaOverlay attacherJointPosition="0.5 0">
            <default name="DEFAULT_VEHICLE"/>
            <selected name="DEFAULT_VEHICLE_SELECTED"/>
        </schemaOverlay>
    </base>
    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels autoRotateBackSpeed="1.7">
                    <wheel hasTireTracks="true" hasParticles="true" rotMin="-35" rotMax="35">
                        <physics rotSpeed="70" restLoad="0.4" repr="0>0" driveNode="0>0|0" radius="0.33" width="0.2" mass="0.05" initialCompression="40" suspTravel="0.1" spring="8" damper="25" frictionScale="1.5" tireTrackAtlasIndex="4"/>
                    </wheel>
                    <wheel hasTireTracks="true" hasParticles="true" rotMin="-35" rotMax="35">
                        <physics rotSpeed="70" restLoad="0.4" repr="0>1" driveNode="0>1|0" radius="0.33" width="0.2" mass="0.05" initialCompression="40" suspTravel="0.1" spring="8" damper="25" frictionScale="1.5" tireTrackAtlasIndex="4"/>
                    </wheel>
                    <wheel hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="0.3" repr="0>2" radius="0.53" width="0.3" mass="0.2" initialCompression="50" suspTravel="0.05" spring="8" damper="25" frictionScale="1.5"/>
                    </wheel>
                    <wheel hasTireTracks="true" hasParticles="true">
                        <physics rotSpeed="0" restLoad="0.3" repr="0>3" radius="0.53" width="0.3" mass="0.2" initialCompression="50" suspTravel="0.05" spring="8" damper="25" frictionScale="1.5"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="65" rotMax="43" rotCenterWheel1="3" rotCenterWheel2="4"/>
        </ackermannSteeringConfigurations>
    </wheels>
    <attacherJoints>
        <attacherJoint node="0>10|0|0" lowerRotLimit="0 0 20" lowerTransLimit="0 0.5 0" moveTime="2.5">
            <distanceToGround lower="0.27" upper="1.00"/>
            <rotationNode node="0>10" lowerRotation="-12 0 0"/>
            <rotationNode2 node="0>10|0" lowerRotation="8 0 0"/>
            <bottomArm rotationNode="0>11" translationNode="0>11|0" referenceNode="0>11|0|0" zScale="-1"/>
            <topArm baseNode="0>12" filename="$data/shared/vehicleParts/upperLink.i3d" zScale="-1"/>
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint node="0>13" jointType="trailer" lowerRotLimit="20 85 85" upperRotationOffset="0" allowsJointLimitMovement="false">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint node="0>14" jointType="trailerLow" lowerRotLimit="10 50 50" upperRotationOffset="0" allowsJointLimitMovement="false">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <sounds>
            <attach file="$data/sounds/attach.wav">
                <pitch outdoor="1"/>
            </attach>
            <hydraulic file="$data/sounds/hydraulicUp.wav">
                <volume outdoor="0.8"/>
                <pitch outdoor="0.55"/>
            </hydraulic>
        </sounds>
    </attacherJoints>
    <powerTakeOffs>
        <output outputNode="0>24" attacherJointIndices="3"/>
    </powerTakeOffs>
    <lights>
        <states>
            <state lightTypes="0"/>
        </states>
        <realLights>
            <low>
                <light node="0>5|0" lightTypes="0 3"/>
                <light node="0>5|1" lightTypes="0" excludedLightTypes="3"/>
                <light lightTypes="3"/>
            </low>
            <high>
                <light node="0>5|3" lightTypes="0 3"/>
                <light node="0>5|2|0" lightTypes="0" excludedLightTypes="3"/>
                <light node="0>5|4" lightTypes="0 3"/>
                <light lightTypes="3"/>
                <turnLightLeft node="0>27|0|3"/>
                <turnLightLeft node="0>27|0|4"/>
                <turnLightRight node="0>27|1|3"/>
                <turnLightRight node="0>27|1|4"/>
                <brakeLight node="0>5|2|0"/>
            </high>
        </realLights>
    </lights>
    <enterable>
        <exitPoint node="0>7"/>
        <enterReferenceNode node="0>"/>
        <characterNode node="0>9|0" cameraMinDistance="1.5" spineRotation="-90 0 90">
            <target ikChain="rightFoot" targetNode="0>9|1"/>
            <target ikChain="leftFoot" targetNode="0>9|2"/>
            <target ikChain="rightArm" targetNode="0>8|0|0"/>
            <target ikChain="leftArm" targetNode="0>8|0|1"/>
        </characterNode>
        <cameras>
            <camera node="4|0|0" rotatable="true" rotateNode="4|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="0" transMin="4" transMax="40">
                <raycastNode node="0>19"/>
                <raycastNode node="0>20"/>
            </camera>
            <camera node="4|1" rotatable="true" limit="true" rotMinX="-1" rotMaxX="1.4" transMin="0" transMax="0" useMirror="true" isInside="true"/>
        </cameras>
    </enterable>
    <motorized>
        <motorConfigurations>
            <motorConfiguration>
                <motor torqueScale="0.166" minRpm="1000" maxRpm="2200" maxBackwardSpeed="12" brakeForce="0.05" lowBrakeForceScale="0.22" lowBrakeForceSpeedLimit="1">
                    <torque normRpm="0.45" torque="0.9"/>
                    <torque normRpm="0.5" torque="0.9"/>
                    <torque normRpm="0.59" torque="0.92"/>
                    <torque normRpm="0.72" torque="0.95"/>
                    <torque normRpm="0.86" torque="0.88"/>
                    <torque normRpm="1" torque="0.72"/>
                </motor>
                <transmission minForwardGearRatio="29.9" maxForwardGearRatio="80" minBackwardGearRatio="50" maxBackwardGearRatio="70"/>
            </motorConfiguration>
        </motorConfigurations>
        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.6" wheelIndex1="3" wheelIndex2="4"/>
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>
        <exhaustEffects>
            <exhaustEffect node="0>16" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0.9 0.9 0.9 0.05" maxRpmColor="0.9 0.9 0.9 0.2" minRpmScale="0.06" maxRpmScale="0.13" xzRotationsForward="0 0" xzRotationsBackward="0 0" xzRotationsLeft="0 0" xzRotationsRight="0 0"/>
        </exhaustEffects>
        <sounds>
		<motorStart file="bucher/sounds/bucher4000_start.wav">
                <volume outdoor="1"/>
                <pitch outdoor="0.8"/>
            </motorStart>
            <motor file="bucher/sounds/bucher4000_idle.wav">
                <volume outdoor="1"/>
                <pitch outdoor="0.8"/>
            </motor>
            <motorStop file="bucher/sounds/bucher4000_stop.wav">
                <pitch outdoor="1"/>
            </motorStop>
            <compressedAir file="bucher/sounds/bucher4000_brake.wav">
                <volume outdoor="0.85"/>
                <pitch outdoor="1"/>
            </compressedAir>
         </sounds>
    </motorized>
    <drivable>
        <steeringWheel node="0>8|0" indoorRotation="540" outdoorRotation="50"/>
    </drivable>
    <animations>
        <animation name="rpmDisplay">
            <part node="0>33|2|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -270 0"/>
        </animation>
        <animation name="fuelDisplay">
            <part node="0>33|1|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -136 0"/>
        </animation>
        <animation name="speedDisplay">
            <part node="0>33|0|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -271 0"/>
        </animation>
    </animations>
    <cylindered>
        <movingTools>
            <movingTool node="0>11">
                <dependentPart node="0>21"/>
            </movingTool>
        </movingTools>
        <movingParts>
            <movingPart node="0>22" referencePoint="0>0|1" localReferencePoint="0>22|0" referenceFrame="0>22" isActiveDirty="true" playSound="false">
                <dependentPart node="0>22|0"/>
            </movingPart>
            <movingPart node="0>22|0" referencePoint="0>0|1" referenceFrame="0>" isActiveDirty="true" scaleZ="true" playSound="false"/>
            <movingPart node="0>23" referencePoint="0>1|1" localReferencePoint="0>23|0" referenceFrame="0>23" isActiveDirty="true" playSound="false">
                <dependentPart node="0>23|0"/>
            </movingPart>
            <movingPart node="0>23|0" referencePoint="0>1|1" referenceFrame="0>" isActiveDirty="true" scaleZ="true" playSound="false"/>
            <movingPart node="0>21" referencePoint="0>11|0|1" localReferencePoint="0>21|0" referenceFrame="0>" invertZ="true">
                <dependentPart node="0>21|0"/>
            </movingPart>
            <movingPart node="0>21|0" referencePoint="0>11|0|1" referenceFrame="0>11|0|1" scaleZ="true"/>
        </movingParts>
    </cylindered>
    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit capacity="45" unit="$l10n_unit_literShort" fillTypes="diesel" showOnHud="false" showInShop="false"/>
                    <fillUnit capacity="9" unit="$l10n_unit_literShort" fillTypes="def" showOnHud="false" showInShop="false"/>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
    <washable dirtDuration="50" washDuration="1" workMultiplier="4"/>
    <honk>
        <sound file="$data/sounds/horn.wav" innerRadius="10">
            <volume outdoor="1"/>
        </sound>
    </honk>
    <ai>
        <collisionTrigger node="0>15"/>
    </ai>
	
  <i3dMappings>
        <i3dMapping id="Hebel" node="0>2|2|0|0|0" />
	</i3dMappings>
    
</vehicle>
