<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="kenworthwrecker">
    <annotation>ENG51INE- WMF Modding</annotation>
    <typeDesc>$l10n_typeDesc_lowLoader</typeDesc>
    <filename>kenworthwrecker.i3d</filename>
    <size width="2.5" length="7.5"/>
    <wheels autoRotateBackSpeed="1.8">
        <wheel rotSpeed="1" repr="0>0" driveNode="0>0" radius="0.58" restLoad="2.8" forcePointRatio="0.2" initialCompression="50" suspTravel="0.35" spring="30" damper="20" hasTireTracks="true" tireTrackAtlasIndex="1" frictionScale="2" mass="3" maxLatStiffnessLoad="20" width="0.42" hasParticles="true"/>
        <wheel rotSpeed="1" repr="0>1" driveNode="0>1" radius="0.58" restLoad="2.8" forcePointRatio="0.2" initialCompression="50" suspTravel="0.35" spring="30" damper="20" hasTireTracks="true" tireTrackAtlasIndex="1" frictionScale="2" mass="3" maxLatStiffnessLoad="20" width="0.42" hasParticles="true"/>
        <wheel rotSpeed="0" repr="0>2" driveNode="0>2" radius="0.62" restLoad="12.0" forcePointRatio="0.3" initialCompression="60" suspTravel="0.1" spring="85" damper="65" hasTireTracks="true" tireTrackAtlasIndex="1" frictionScale="2" mass="3" maxLatStiffnessLoad="3" width="0.64" hasParticles="true"/>
        <wheel rotSpeed="0" repr="0>3" driveNode="0>3" radius="0.62" restLoad="12.0" forcePointRatio="0.3" initialCompression="60" suspTravel="0.1" spring="85" damper="65" hasTireTracks="true" tireTrackAtlasIndex="1" frictionScale="2" mass="3" maxLatStiffnessLoad="3" width="0.64" hasParticles="true"/>
    </wheels>
    <ackermannSteering rotSpeed="60" rotMax="47" rotCenterWheel1="3" rotCenterWheel2="4"/>
    <differentials>
        <differential torqueRatio="0.5" maxSpeedRatio="1.4" wheelIndex1="2" wheelIndex2="3"/>
        <!-- back left-right -->
        <differential torqueRatio="0.5" maxSpeedRatio="1.2" differentialIndex1="0" differentialIndex2="1"/>
        <!-- front-back -->
    </differentials>
    <motor torqueScale="2.349" minRpm="1000" maxRpm="2250" maxBackwardSpeed="15" brakeForce="18" lowBrakeForceScale="0.22" lowBrakeForceSpeedLimit="1" minForwardGearRatio="9.5" maxForwardGearRatio="130" minBackwardGearRatio="50" maxBackwardGearRatio="130">
        <torque normRpm="0.45" torque="0.5"/>
        <torque normRpm="0.5" torque="0.6"/>
        <torque normRpm="0.59" torque="0.7"/>
        <torque normRpm="0.72" torque="1"/>
        <torque normRpm="0.86" torque="0.88"/>
        <torque normRpm="1" torque="0.7"/>
    </motor>
    <fuelCapacity>500</fuelCapacity>
    <fuelUsage>38</fuelUsage>
    <cameras count="2">
        <camera1 index="0>4|0|0|0" rotatable="true" rotateNode="0>4|0|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="20"/>
        <camera2 index="0>4|0|1" rotatable="true" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" useMirror="true" isInside="true"/>
    </cameras>
    <lights>
        <!--to be adjusted manually-->
        <low>
            <light realLight="0>7|0|1" decoration="0>7|2" lightTypes="0"/>
            <light decoration="0>7|1" lightTypes="0"/>
            <light realLight="0>7|0|0" decoration="0>7|2" lightTypes="1"/>
            <light realLight="0>7|0|2" decoration="0>7|3" lightTypes="1"/>
            <light decoration="0>5|0|0|0|0" lightTypes="0"/>
            <light realLight="0>5|0|0|3|0|0" decoration="0>5|0|0|3|1|1" lightTypes="1"/>
        </low>
        <!--to be adjusted manually-->
        <high>
            <light realLight="0>7|0|1" decoration="0>7|2" lightTypes="0"/>
            <light decoration="0>7|1" lightTypes="0"/>
            <light realLight="0>7|0|0" decoration="0>7|2" lightTypes="1"/>
            <light realLight="0>7|0|2" decoration="0>7|3" lightTypes="1"/>
            <light decoration="0>5|0|0|0|0" lightTypes="0"/>
            <light realLight="0>5|0|0|3|0|0" decoration="0>5|0|0|3|1|1" lightTypes="1"/>
        </high>
        <!--to be adjusted manually-->
        <states>0 1 2</states>
    </lights>
    <brakeLights>
        <brakeLight decoration="0>5|0|0|0|1"/>
    </brakeLights>
    <turnLights>
        <turnLightLeft decoration="0>7|4|0"/>
        <turnLightLeft decoration="0>5|0|0|0|2|0"/>
        <turnLightRight decoration="0>7|4|1"/>
        <turnLightRight decoration="0>5|0|0|0|2|1"/>
    </turnLights>
    <!-- <beaconlights>
        <beaconLight index="0>5|0|0|4|5" speed="0.018" filename="$data/shared/beaconLights/beaconLight02.i3d"/>
        <beaconLight index="0>5|0|0|4|6" speed="0.015" filename="$data/shared/beaconLights/beaconLight02.i3d"/>
    </beaconlights> -->
    <lightsaddon lightsStayOn="true" strobesAreBeacons="false">
        <light type="strobe" index="0>5|0|0|2|0|3|0" inputName="strobe" helptext="strobe" stayOn="true" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" invert="true"/>
        <light type="strobe" index="0>5|0|0|2|0|3|1" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" stayOn="true"/>
        <light type="strobe" index="0>5|0|0|2|0|3|2" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" stayOn="true"/>
        <light type="strobe" index="0>5|0|0|2|0|3|3" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" stayOn="true" invert="true"/>
        <light type="strobe" index="0>5|0|0|2|0|3|4" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" stayOn="true" invert="true"/>
        <light type="strobe" index="0>5|0|0|2|0|3|5" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" stayOn="true"/>
        <light type="strobe" index="0>5|0|0|2|0|3|6" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" stayOn="true" invert="true"/>
        <light type="strobe" index="0>5|0|0|2|0|3|7" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" stayOn="true"/>
        <light type="strobe" index="0>5|0|0|2|0|3|8" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" stayOn="true" invert="true"/>
        <light type="strobe" index="0>5|0|0|2|0|3|9" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" stayOn="true"/>
        <light type="strobe" index="0>5|0|0|2|0|3|10" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" stayOn="true" invert="true"/>
        <light type="strobe" index="0>5|0|0|2|0|3|11" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" stayOn="true"/>
        <light type="strobe" index="0>5|0|0|2|1|3|0" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" stayOn="true" invert="true"/>
        <light type="strobe" index="0>5|0|0|2|1|3|1" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" stayOn="true"/>
        <light type="strobe" index="0>5|0|0|2|1|3|2" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" stayOn="true"/>
        <light type="strobe" index="0>5|0|0|2|1|3|3" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" stayOn="true" invert="true"/>
        <light type="strobe" index="0>5|0|0|2|1|3|4" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" stayOn="true" invert="true"/>
        <light type="strobe" index="0>5|0|0|2|1|3|5" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" stayOn="true"/>
        <light type="strobe" index="0>5|0|0|2|1|3|6" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" stayOn="true" invert="true"/>
        <light type="strobe" index="0>5|0|0|2|1|3|7" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" stayOn="true"/>
        <light type="strobe" index="0>5|0|0|2|1|3|8" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" stayOn="true" invert="true"/>
        <light type="strobe" index="0>5|0|0|2|1|3|9" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" stayOn="true"/>
        <light type="strobe" index="0>5|0|0|2|1|3|10" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" stayOn="true" invert="true"/>
        <light type="strobe" index="0>5|0|0|2|1|3|11" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400" stayOn="true"/>
        <light type="strobe" index="0>5|0|4|0" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400 400 400 400" stayOn="true"/>
        <light type="strobe" index="0>5|0|5|0" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400 400 400 400" stayOn="true" invert="true"/>
        <light type="strobe" index="0>5|0|6|0" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400 400 400 400" stayOn="true"/>
        <light type="strobe" index="0>5|0|7|0" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400 400 400 400" stayOn="true" invert="true"/>
        <light type="strobe" index="0>5|0|8|0" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400 400 400 400" stayOn="true"/>
        <light type="strobe" index="0>5|0|9|0" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400 400 400 400" stayOn="true" invert="true"/>
        <light type="strobe" index="0>5|0|10|0" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400 400 400 400" stayOn="true" invert="true"/>
        <light type="strobe" index="0>5|0|11|0" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 400 400 400 400 400" stayOn="true"/>
        <light type="strobe" index="0>11|0" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 " stayOn="true"/>
        <light type="strobe" index="0>12|0" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 " stayOn="true" invert="true"/>
        <light type="strobe" index="0>13|0" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 " stayOn="true" invert="true"/>
        <light type="strobe" index="0>14|0" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 " stayOn="true"/>
        <light type="strobe" index="0>15|0" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 " stayOn="true"/>
        <light type="strobe" index="0>16|0" inputName="strobe" sequence="30 30 30 30 30 30 30 30 30 30 30 30 " stayOn="true" invert="true"/>
    </lightsaddon>
    <enterReferenceNode index="0>"/>
    <exitPoint index="0>4|7"/>
    <attacherJoints>
        <attacherJoint index="0>6|1|0|3|3" jointType="semitrailer" allowsJointLimitMovement="false" allowsLowering="false" lowerRotLimit="12 175 12" enableCollision="true">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint index="0>6|1|0|3|3" jointType="trailer" allowsJointLimitMovement="false" upperRotationOffset="0" lowerRotLimit="10 50 50">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
        <attacherJoint index="0>6|1|0|3|3" jointType="trailerLow" allowsJointLimitMovement="false" upperRotationOffset="0" lowerRotLimit="10 50 50">
            <schema position="1 0" rotation="0" invertX="false"/>
        </attacherJoint>
    </attacherJoints>
    <attacherPoint index="0>6|1|0|3|3" rootNode="0>" allowsJointLimitMovement="false" allowsLowering="true" rotLimitSpring="100 100 100" rotLimitDamping="100 100 100" transLimitSpring="100 100 100" transLimitDamping="100 100 100"/>
    <tensionBelts linkNode="0>5|0|1" jointNode="0>" width="0.075" maxEdgeLength="0.1" geometryBias="0.01" ratchetPosition="0.2" defaultOffset="0.1" defaultOffsetSide="0.1" defaultHeight="5">
        <tensionBelt startNode="0>5|0|1|0" endNode="0>5|0|1|0|0"/>
        <tensionBelt startNode="0>5|0|1|1" endNode="0>5|0|1|1|0"/>
        <tensionBelt startNode="0>5|0|1|2" endNode="0>5|0|1|2|0"/>
        <tensionBelt startNode="0>5|0|1|3" endNode="0>5|0|1|3|0"/>
        <tensionBelt startNode="0>5|0|1|4" endNode="0>5|0|1|4|0"/>
        <tensionBelt startNode="0>5|0|1|5" endNode="0>5|0|1|5|0"/>
        <tensionBelt startNode="0>5|0|1|6" endNode="0>5|0|1|6|0"/>
        <tensionBelt startNode="0>5|0|1|7" endNode="0>5|0|1|7|0"/>
        <tensionBelt startNode="0>5|0|1|8" endNode="0>5|0|1|8|0"/>
        <tensionBelt startNode="0>5|0|1|9" endNode="0>5|0|1|9|0"/>
    </tensionBelts>
    <objectAttache castPoint1="0>5|0|0|1|0" castPoint2="0>5|0|0|1|1" attacherNode="0>5|0|2" highOffset="4"/>
    <dynamicMountAttacher triggerNode="0>5|0|2" rootNode="0>" jointNode="0>" forceAcceleration="30"/>
    <allowFillFromAir value="false"/>
    <allowTipDischarge value="false"/>
    <steering index="0>4|2|0" indoorRotation="270" outdoorRotation="70"/>
    <characterNode index="0>4|4|0" cameraMinDistance="2.0" filename="$dataS2/character/player/player.xml" spineRotation="180 0 90">
        <target ikChain="rightFoot" targetNode="0>4|4|1" setDirty="true"/>
        <target ikChain="leftFoot" targetNode="0>4|4|2" setDirty="true"/>
        <target ikChain="rightArm" targetNode="0>4|2|0|0" setDirty="true"/>
        <target ikChain="leftArm" targetNode="0>4|2|0|1" setDirty="true"/>
    </characterNode>
    <ai>
        <trafficCollisionTrigger index="0>4|3"/>
    </ai>
    <motorStartSound file="sounds/PickUp_start.wav" volume="1" pitchOffset="1"/>
    <motorSound file="sounds/PickUp_idle.wav" volume="1" pitchOffset="1" pitchScale="0.017" pitchMax="1.75"/>
    <motorSoundRun file="sounds/PickUp_run.wav" volume="1" pitchOffset="0.65" pitchScale="0.016" pitchMax="1.75"/>
    <motorStopSound file="sounds/PickUp_stop.wav" volume="1" pitchOffset="0.9"/>
    <reverseDriveSound file="sounds/Reverse.ogg" volume="1.5"/>
    <honkSound file="sounds/PowerHorn.wav" volume="2.4" innerRadius="300" radius="180"/>
    <movingTools>
        <movingTool index="0>5">
            <controls axis="AXIS_FRONTLOADER_ARM" icon="$dataS2/menu/moveControls/frontloader_arm.png" invertAxis="true" invertMouseAxis="false" speedFactor="-2"/>
            <rotation rotSpeed="20" rotAcceleration="60" rotMax="0" rotMin="-20" rotationAxis="1"/>
            <attacherJoint jointIndices="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31"/>
            <dependentPart index="0>5|0|0|1"/>
        </movingTool>
        <movingTool index="0>5|0">
            <controls axis="AXIS_FRONTLOADER_TOOL" icon="$dataS2/menu/moveControls/frontloader_arm2.png" invertAxis="true" invertMouseAxis="false" speedFactor="0.6"/>
            <translation transSpeed="1.5" transAcceleration="60" transMax="3" transMin="0" translationAxis="3"/>
            <attacherJoint jointIndices="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31"/>
            <dependentPart index="0>5|0|0|1"/>
        </movingTool>
        <movingTool index="0>6">
            <controls axis="AXIS_FRONTLOADER_ARM2" icon="$dataS2/menu/moveControls/frontloader_arm.png" invertAxis="true" invertMouseAxis="true" speedFactor="-2"/>
            <rotation rotSpeed="20" rotAcceleration="60" rotMax="5" rotMin="-16" rotationAxis="1"/>
            <attacherJoint jointIndices="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31"/>
            <dependentPart index="0>6|1|0|3"/>
            <dependentPart index="0>5|0|0|1|0"/>
        </movingTool>
        <movingTool index="0>6|1">
            <controls axis="AXIS_FRONTLOADER_TOOL2" icon="$dataS2/menu/moveControls/frontloader_arm2.png" invertAxis="false" invertMouseAxis="true" speedFactor="0.6"/>
            <translation transSpeed="1.5" transAcceleration="10" transMax="1.5" transMin="0" translationAxis="3"/>
            <attacherJoint jointIndices="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31"/>
            <dependentPart index="0>6|1|0|3"/>
            <dependentPart index="0>5|0|0|1|0"/>
        </movingTool>
    </movingTools>
    <animations>
        <animation name="speedDisplay">
            <part node="0>4|9|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -160.5 0"/>
        </animation>
        <animation name="rpmDisplay">
            <part node="0>4|9|1" startTime="0" endTime="1" startRot="0 0 0" endRot="0 -160 0"/>
        </animation>
    </animations>
    <components count="1">
        <component1 centerOfMass="0 0.5 -0.85" 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>
            <en>Kenworth Wrecker</en></name>
        <functions>
            <function>$l10n_function_lowLoader</function>
        </functions>
        <specs>
            <power>220</power>
        </specs>
        <image>store_towtruck.dds</image>
        <price>1</price>
        <dailyUpkeep>20</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>KENWORTH</brand>
        <category>trucks</category>
    </storeData>
</vehicle>
