<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="tractor">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <filename>mercedes.i3d</filename>
    <size width="5" length="10"/>
    <wheels autoRotateBackSpeed="1.8">
        <wheel rotSpeed="1" repr="0>1" driveNode="0>1" radius="0.545" restLoad="21.99" forcePointRatio="0.2" initialCompression="50" suspTravel="0.2" spring="30" damper="20" hasTireTracks="true" tireTrackAtlasIndex="4" mass="20" width="0.42" hasParticles="true"/>
        <wheel rotSpeed="1" repr="0>0" driveNode="0>0" radius="0.545" restLoad="21.99" forcePointRatio="0.2" initialCompression="50" suspTravel="0.2" spring="30" damper="20" hasTireTracks="true" tireTrackAtlasIndex="4" mass="20" width="0.42" hasParticles="true"/>
        <wheel rotSpeed="0" repr="0>2" radius="0.545" restLoad="41.26" forcePointRatio="0.3" initialCompression="50" suspTravel="0.2" spring="45" damper="35" hasTireTracks="true" tireTrackAtlasIndex="4" mass="40" width="0.52" hasParticles="true"/>
        <wheel rotSpeed="0" repr="0>3" radius="0.545" restLoad="41.26" forcePointRatio="0.3" initialCompression="50" suspTravel="0.2" spring="45" damper="35" hasTireTracks="true" tireTrackAtlasIndex="4" mass="40" width="0.52" hasParticles="true"/>
    </wheels>
    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0" linkNode="0>0" filename="wheels.i3d"/>
        <dynamicallyLoadedPart node="1" linkNode="0>1" filename="wheels.i3d"/>
        <dynamicallyLoadedPart node="2" linkNode="0>2" filename="wheels.i3d"/>
        <dynamicallyLoadedPart node="3" linkNode="0>3" filename="wheels.i3d"/>
    </dynamicallyLoadedParts>
    <ackermannSteering rotSpeed="60" rotMax="47" rotCenterWheel1="2" rotCenterWheel2="3"/>
    <differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="0.15" wheelIndex1="0" wheelIndex2="1"/>
        <!-- front left-right -->
        <differential torqueRatio="0.4" maxSpeedRatio="0.15" wheelIndex1="2" wheelIndex2="3"/>
        <!-- front left-right -->
        <differential torqueRatio="0.4" maxSpeedRatio="0.15" wheelIndex1="4" wheelIndex2="5"/>
        <!-- back left-right -->
    </differentials>
    <motor torqueScale="2.3208" minRpm="1000" maxRpm="1900" maxBackwardSpeed="16" brakeForce="40" lowBrakeForceScale="0.12" lowBrakeForceSpeedLimit="1" minForwardGearRatio="8" maxForwardGearRatio="130" minBackwardGearRatio="50" maxBackwardGearRatio="130">
        <torque normRpm="0.5" torque="1.7"/>
        <torque normRpm="0.55" torque="1.9"/>
        <torque normRpm="0.65" torque="2.1"/>
        <torque normRpm="0.72" torque="1"/>
        <torque normRpm="0.86" torque="2"/>
        <torque normRpm="1" torque="0.7"/>
    </motor>
    <fuelCapacity>500</fuelCapacity>
    <fuelUsage>252</fuelUsage>
    <cameras count="2">
        <camera1 index="0>8|0|0" rotatable="true" rotateNode="0>8|0" limit="true" rotMinX="-1.4" rotMaxX="1" transMin="6" transMax="25" useWorldXZRotation="true">
            <raycastNode index="0>13|0"/>
            <raycastNode index="0>13|1"/>
        </camera1>
        <camera2 index="0>8|1" rotatable="true" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0"/>
    </cameras>
    <lights>
        <!--to be adjusted manually-->
        <low>
            <light realLight="0>7|0|0" decoration="0>7|0|3" lightTypes="0"/>
            <light realLight="0>7|0|2" decoration="0>7|0|5" lightTypes="2"/>
            <light realLight="0>7|0|1" decoration="0>7|0|4" lightTypes="1"/>
        </low>
        <!--to be adjusted manually-->
        <high>
            <light realLight="0>7|0|0" decoration="0>7|0|3" lightTypes="0"/>
            <light realLight="0>7|0|2" decoration="0>7|0|5" lightTypes="2"/>
            <light realLight="0>7|0|1" decoration="0>7|0|4" lightTypes="1"/>
        </high>
        <!--to be adjusted manually-->
        <states>0 1 2</states>
    </lights>
    <brakeLights>
        <brakeLight decoration="0>7|1"/>
    </brakeLights>
    <turnLights>
        <turnLightLeft decoration="0>7|2|0"/>
        <turnLightRight decoration="0>7|2|1"/>
    </turnLights>
    <reverseLights>
        <reverseLight index="0>7|3"/>
    </reverseLights>
    <mirrors>
        <mirror index="0>17"/>
    </mirrors>
    <indoorHud>
        <speed animName="speedDisplay"/>
        <rpm animName="rpmDisplay"/>
        <fuel animName="fuelDisplay"/>
    </indoorHud>
    <steering index="0>15|0" rotationSpeed="8"/>
    <enterReferenceNode index="0>"/>
    <exitPoint index="0>9"/>
    <ai>
        <trafficCollisionTrigger index="0>11"/>
    </ai>
    <attacherJoints>
        <attacherJoint index="0>10" jointType="semitrailer" allowsJointLimitMovement="false" allowsLowering="false" lowerRotLimit="12 175 12" enableCollision="true">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
    </attacherJoints>
    <animations>
        <animation name="speedDisplay">
            <part node="0>16|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -148.885"/>
            <part node="0>7|0|3|16|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -148.885"/>
        </animation>
        <animation name="rpmDisplay">
            <part node="0>16|1" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -163.051"/>
            <part node="0>7|0|3|16|1" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -163.051"/>
        </animation>
        <animation name="fuelDisplay">
            <part node="0>16|2" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 153.172"/>
            <part node="0>7|0|3|16|2" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 153.172"/>
        </animation>
    </animations>
    <motorStartDuration>2000</motorStartDuration>
    <attachSound file="audio/truck_attach.wav" pitchOffset="1"/>
    <motorStartSound file="audio/mk_start.ogg" pitchOffset="1" volume="1"/>
    <motorSound file="audio/mk_idle.ogg" pitchOffset="1" pitchScale="0.011" pitchMax="1.7" volume="0.9" radius="50" innerRadius="20"/>
    <motorSoundRun file="audio/mk_high.ogg" pitchOffset="0.75" pitchScale="0.012" pitchMax="1.6" volume="0.85"/>
    <motorSoundRun2 file="audio/engine_low.ogg" pitchOffset="0.7" volume="0.1" pitchMax="1.65" volumeMax="1"/>
    <motorStopSound file="audio/mk_stop.ogg" pitchOffset="1" volume="1"/>
    <reverseDriveSound file="$data/vehicles/shared/reverseDrivingBeep.wav" volume="0.35"/>
    <compressedAirSound file="audio/brakeBig.wav" pitchOffset="1" volume="1.25"/>
    <compressionSound file="audio/brakeOld.wav" pitchOffset="1" volume="1.5"/>
    <honkSound file="audio/horn.wav" volume="1" innerRadius="35" radius="80"/>
    <components count="1">
        <component1 centerOfMass="0 0 0" solverIterationCount="10"/>
    </components>
    <movingParts>
        <!-- hand -->
        <movingPart index="0>19|1" referencePoint="0>15|0|1" referenceFrame="0>" isActiveDirty="true" scaleZ="true"/>
    </movingParts>
    <characterNode index="0>19" cameraMinDistance="1.5" filename="$dataS2/character/player/player.xml" spineRotation=""/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="4"/>
    <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>
            <en>Mercedes Benz 1844 Actros</en>
        </name>
        <functions>
            <function>$l10n_function_tractor</function>
        </functions>
        <specs>
            <power>435</power>
        </specs>
        <image>store.dds</image>
        <price>70000</price>
        <dailyUpkeep>25</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>MERCEDES</brand>
        <category>trucks</category>
    </storeData>
</vehicle>
