<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="hookLiftTrailer">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>ITR 26.33 Long Hitch</name>
        <functions>
            <function>$l10n_function_hookLift</function>
        </functions>
        <image>store/itrunner.dds</image>
        <price>55000</price>
        <dailyUpkeep>40</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>ITRUNNER</brand>
        <category>tippers</category>
        <fieldJobCategory>1</fieldJobCategory>
        <vertexBufferMemoryUsage>419672</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>56766</indexBufferMemoryUsage>
        <textureMemoryUsage>12517232</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <typeDesc>$l10n_typeDesc_hookLiftTrailer</typeDesc>
    <filename>itRunner/itRunner2633LH.i3d</filename>

    <size width="3.5" length="9.5" lengthOffset="-0.3"/>

    <wheels autoRotateBackSpeed="2.0">
        <wheel restLoad="1.2" repr="0>0" driveNode="0>0|0" filename="$data/vehicles/wheels/trelleborg/TwinRadial_560_60R22_5.xml" isLeft="true"  initialCompression="20" suspTravel="0.25" spring="22" damper="100" hasParticles="true" steeringAxleScale="0.3" steeringAxleRotMax="15" steeringAxleRotMin="-15"/>
        <wheel restLoad="1.2" repr="0>1"                   filename="$data/vehicles/wheels/trelleborg/TwinRadial_560_60R22_5.xml" isLeft="false" initialCompression="20" suspTravel="0.25" spring="22" damper="100" hasParticles="true" steeringAxleScale="0.3" steeringAxleRotMax="15" steeringAxleRotMin="-15"/>
        <wheel restLoad="1.1" repr="0>2"                   filename="$data/vehicles/wheels/trelleborg/TwinRadial_560_60R22_5.xml" isLeft="true"  initialCompression="20" suspTravel="0.25" spring="22" damper="100" hasParticles="true" hasTireTracks="true" />
        <wheel restLoad="1.1" repr="0>3"                   filename="$data/vehicles/wheels/trelleborg/TwinRadial_560_60R22_5.xml" isLeft="false" initialCompression="20" suspTravel="0.25" spring="22" damper="100" hasParticles="true" hasTireTracks="true" />
        <wheel restLoad="1.0" repr="0>4"                   filename="$data/vehicles/wheels/trelleborg/TwinRadial_560_60R22_5.xml" isLeft="true"  initialCompression="20" suspTravel="0.25" spring="22" damper="100" hasParticles="true" steeringAxleScale="-0.7" steeringAxleRotMax="25" steeringAxleRotMin="-25"/>
        <wheel restLoad="1.0" repr="0>5"                   filename="$data/vehicles/wheels/trelleborg/TwinRadial_560_60R22_5.xml" isLeft="false" initialCompression="20" suspTravel="0.25" spring="22" damper="100" hasParticles="true" steeringAxleScale="-0.7" teeringAxleRotMax="25" steeringAxleRotMin="-25"/>
    </wheels>

	<rimColorConfigurations price="200" icon="$dataS2/menu/hud/configurations/config_rimColor.png" useDefaultColors="true">
		<rimColorConfiguration color="0.95 0.95 0.95 1" />
		<colorNode node="0>0" />
	</rimColorConfigurations>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="0" linkNode="0>0|1|0" filename="$data/shared/vehicleParts/wheelChock01.i3d" />
        <dynamicallyLoadedPart node="0" linkNode="0>0|1|1" filename="$data/shared/vehicleParts/wheelChock01.i3d" />
        <dynamicallyLoadedPart node="0" linkNode="0>6|5|0" filename="$data/shared/vehicleParts/wheelChock01.i3d" />
        <dynamicallyLoadedPart node="0" linkNode="0>6|5|1" filename="$data/shared/vehicleParts/wheelChock01.i3d" />
    </dynamicallyLoadedParts>

    <brakeForce>1.2</brakeForce>

    <steeringAxleAngleScale startSpeed="5" endSpeed="90" />

    <powerConsumer ptoRpm="540" neededPtoPower="50"/>

    <lights>
        <low>
            <light                       decoration="0>6|6|0" lightTypes="0 1 2 3"/> <!--BackLights-->
            <light                       decoration="0>6|13|0" lightTypes="1"/> <!--BackLights-->
        </low>
        <high>
            <light realLight="0>6|6|1" decoration="0>6|6|0" lightTypes="0 1 2 3" /> <!--BackLights-->
            <light realLight="0>6|13|1" decoration="0>6|13|0" lightTypes="1" /> <!--BackLights-->
        </high>
    </lights>

    <turnLights>
        <turnLightLeft  realLight="0>6|9|0|1" decoration="0>6|9|0|0" />
        <turnLightRight realLight="0>6|9|1|1" decoration="0>6|9|1|0" />
    </turnLights>

    <lights>
        <light decoration="0>6|6" />
    </lights>

    <brakeLights>
        <brakeLight decoration="0>6|7|0" realLight="0>6|6|1"/>
    </brakeLights>

    <reverseLights>
        <reverseLight decoration="0>6|8|0" realLight="0>6|8|1"/>
    </reverseLights>

    <beaconLights>
        <beaconLight index="0>6|10" speed="0.015" filename="$data/shared/beaconLights/beaconLight02.i3d" />
    </beaconLights>

    <inputAttacherJoints>
        <inputAttacherJoint index="0>6|0" jointType="trailerLow" ptoInputNode="0>6|1" attacherHeight="0.65" />
    </inputAttacherJoints>

    <attacherJoints>
        <attacherJoint index="0>6|2|0|0|0|0" jointType="hookLift" lowerRotLimit="0 40 80" upperRotLimit="0 40 80" enableCollision="true" allowsLowering="false" >
            <schema position="0 0.5" rotation="0" invertX="false" />
        </attacherJoint>
    </attacherJoints>
	
	<attacherJointConfigurations>
        <attacherJointConfiguration name="$l10n_attacher_default" price="0">
            <attacherJoint index="0>10|0|0" jointType="trailer" lowerRotLimit="10 65 65" upperRotationOffset="0" allowsJointLimitMovement="false">
                <schema position="0.5 0" rotation="0" invertX="false" />
            </attacherJoint>
            <objectChange node="0>10|0" visibilityActive="true"/>
            <objectChange node="0>10|1" visibilityActive="false"/>
        </attacherJointConfiguration>
		
		<attacherJointConfiguration name="$l10n_attacher_extend" price="700">
			<attacherJoint index="0>10|1|0|0" transNode="0>10|1|0" transNodeMinY="0.4" transNodeMaxY="0.91" jointType="trailer" lowerRotLimit="10 50 50" upperRotRotationOffset="0" allowsJointLimitMovement="false" >
				<schema position="0.5 0" rotation="0" invertX="false" />
				<objectChange node="0>10|1|1" visibilityActive="false"  visibilityInactive="true" />
			</attacherJoint>
			<attacherJoint index="0>10|1|1|0" transNode="0>10|1|1" transNodeMinY="0.4" transNodeMaxY="0.9" jointType="trailerLow" lowerRotLimit="10 50 50" lowerTransLimit="0 0 0" upperRotRotationOffset="0" allowsJointLimitMovement="false" >
				<schema position="0.5 0" rotation="0" invertX="false" />
				<objectChange node="0>10|1|0" visibilityActive="false"  visibilityInactive="true" />
				<steeringBars leftNode="0>10|1|1|1" rightNode="0>10|1|1|2" />
			</attacherJoint>
			<objectChange node="0>10|0" visibilityActive="false" />
			<objectChange node="0>10|1" visibilityActive="true" />
		</attacherJointConfiguration>
    </attacherJointConfigurations>

    <allowFillFromAir value="false" />
    <allowTipDischarge value="false" />

    <cylinderedHydraulicSound file="$data/sounds/hydraulicUp.wav" pitchOffset="0.8" volume="0.4" />
    <attachSound file="$data/sounds/attach.wav"                   pitchOffset="1.0" volume="1.0" indoorVolumeFactor="0.35" indoorLowpassGain="0.75"/>

    <foldingParts startMoveDirection="-1" posDirectionText="unload_arm" negDirectionText="load_arm" turnOnFoldDirection="0">
        <foldingPart animationName="unfoldHand" speedScale="1.5" />
    </foldingParts>

    <hookLiftTrailer>
        <jointLimits refAnimation="unfoldHand">
            <key time="0"    rotLimit="0 0 0" />
            <key time="0.25" rotLimit="0 0 0" />
            <key time="0.30" rotLimit="0 0 180" />
            <key time="0.50" rotLimit="0 0 180" />
            <key time="1"    rotLimit="0 40 180" />
        </jointLimits>
        <unloadingAnimation name="unloading" speed="1" reverseSpeed="-2"/>
        <texts unloadContainer="unload_container" loadContainer="load_container" unloadArm="unload_arm" loadArm="load_arm"/>
    </hookLiftTrailer>

    <animations>
        <animation name="unfoldHand">
            <part node="0>6|2|0|0"     startTime="0"     endTime="2"    startTrans="0 0.145 2.5" endTrans="0 0.145 1.295"/>
            <part node="0>6|2|0"       startTime="2"     endTime="10"   startRot="0 0 0"   endRot="-143 0 0"/>
            <part node="0>6|2|0|0|0" startTime="2"     endTime="4.51" startRot="0 0 0"   endRot="20 0 0"/>
            <part node="0>6|2|0|0|0" startTime="4.51"  endTime="10"   startRot="20 0 0"  endRot="143 0 0"/>
        </animation>

        <animation name="unloading">
            <part node="0>6|2" startTime="0" endTime="14"  startRot="0 0 0"  endRot="-35 0 0"/>
        </animation>

        <!-- move support wheel down/up -->
        <animation name="moveSupport">
            <part node="0>0|1" startTime="0" endTime="0.05" visibility="false" />
            <part node="0>6|5" startTime="0" endTime="0.05" visibility="true" />
            <part node="0>0|1" startTime="0.05" endTime="0.1" visibility="true" />
            <part node="0>6|5" startTime="0.05" endTime="0.1" visibility="false" />
            <part node="0>6|4" startTime="0" duration="0.6" startTrans="0 0.4239 2.2629" endTrans="0 -0.05 2.2629" />
        </animation>
    </animations>

    <movingTools>
        <!-- support -->
        <movingTool index="0>6|4"/>

        <movingTool index="0>6|2" playSound="true">
            <attacherJoint jointIndices="0" />
            <dependentPart index="0>6|3" />
        </movingTool>
        <movingTool index="0>6|2|0" playSound="true">
            <attacherJoint jointIndices="0" />
            <dependentPart index="0>6|3" />
        </movingTool>
        <movingTool index="0>6|2|0|0" playSound="true">
            <dependentPart index="0>6|2|1" />
            <attacherJoint jointIndices="0" />
        </movingTool>
        <movingTool index="0>6|2|0|0|0">
            <attacherJoint jointIndices="0" />
        </movingTool>
    </movingTools>

    <movingParts>
        <movingPart index="0>6|3" referencePoint="0>6|2|0|1" referenceFrame="0>">
            <translatingPart index="0>6|3|0" />
        </movingPart>
        <movingPart index="0>6|2|1" referencePoint="0>6|2|0|0" referenceFrame="0>" />
    </movingParts>

    <support animationName="moveSupport" />

    <baseColorConfigurations useDefaultColors="true" price="1500" icon="$dataS2/menu/hud/configurations/config_color.png">
        <baseColorConfiguration color="0.0382 0.0369 0.0482 1" />
        <colorNode node="0>6" />
        <colorNode node="0>6|2" />
        <colorNode node="0>6|2|0" />
        <colorNode node="0>6|2|0|0" />
        <colorNode node="0>10|1|2" />
    </baseColorConfigurations>

    <washable dirtDuration="90" washDuration="1" workMultiplier="4" />

    <components count="3">
        <component1 centerOfMass="0 0.65 -1.5" solverIterationCount="30" />
		<component2 centerOfMass="0 -0.3 0" solverIterationCount="10" />
		<component3 centerOfMass="0 -0.3 0" solverIterationCount="10" />
		<joint component1="0" component2="1" index="1>0" rotLimit="14 0 0" transLimit="0 0 0" />
		<joint component1="0" component2="2" index="2>0" rotLimit="14 0 0" transLimit="0 0 0" />
    </components>

    <schemaOverlay file="$dataS2/menu/schemas/implementSchema.png" fileSelected="$dataS2/menu/schemas/implementSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0 0" />
</vehicle>
