<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="semiTrailerFront" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://validation.gdn.giants-software.com/xml/fs22/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
    <storeData>
        <name>Trailking 70HDG</name>
        <functions>
            <function>$l10n_function_lowLoader</function>
        </functions>
        <image>store_tk70front.dds</image>
        <price>10000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>TRAIL_KING</brand>
        <category>lowloaders</category>
    </storeData>
    <base>
        <typeDesc>$l10n_typeDesc_lowLoader</typeDesc>
        <filename>tkFront.i3d</filename>
        <size width="3.8" length="17" />
        <components>
            <component centerOfMass="0 0.1 0" solverIterationCount="10" mass="2550" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TRAILER" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attach" jointType="semitrailer" attacherHeight="1.20" upperRotationOffset="0"/>
        </inputAttacherJoints>
        <support animationName="neck" />
    </attachable>

    <ai>
        <allowTurnBackward value="false" />
        <agentAttachment jointNode="attacherTrailer" width="2.7" height="3.2" length="13.5" lengthOffset="5.3" />
    </ai>

    <attacherJoints>
        <attacherJoint node="attacherTrailer" jointType="semitrailerHook" allowsJointLimitMovement="false" allowsLowering="false" lowerRotLimit="0 0 0">
            <schema position="1 0" />
            <objectChange node="attachHoses001" visibilityActive="true" visibilityInactive="false"/>
        </attacherJoint>
        <sounds>
            <attach template="truckAttach" linkNode="lowboy_main_component1" />
            <detach template="truckDetach" linkNode="lowboy_main_component1" />
        </sounds>
    </attacherJoints>

	<connectionHoses>
		<hose inputAttacherJointIndices="1" type="airDoubleRed" node="airDoubleRed" length="1.8" diameter="0.02" outgoingAdapter="DEFAULT" socket="air_red"/>
		<hose inputAttacherJointIndices="1" type="airDoubleYellow" node="airDoubleYellow" length="1.8" diameter="0.02" outgoingAdapter="DEFAULT" socket="air_yellow"/>
		<hose inputAttacherJointIndices="1" type="electric" node="electric" length="1.8" diameter="0.01" outgoingAdapter="DEFAULT">
      <objectChange node="electric_flap" rotationActive="0 0 0" rotationInactive="90 0 0"/>
    </hose>
	</connectionHoses>  

    <lights>
        <states>
            <state lightTypes="0" />
            <state lightTypes="0 1" />
            <state lightTypes="0 1 2" />
            <state lightTypes="0 1 2 3" />		
        </states>
        <realLights>
            <high>
                <light node="reallightBar" lightTypes="1"/>
                <light node="realRunFrontRight" lightTypes="0"/>
				<turnLightLeft node="realTurnFrontLeft" lightTypes="0" />
                <turnLightRight node="realTurnFrontRight" lightTypes="0" />
			</high>
            <low>
                <light node="reallightBar" lightTypes="1"/>
                <light node="realRunFrontRight" lightTypes="0"/>
				<turnLightLeft node="realTurnFrontLeft" lightTypes="0" />
                <turnLightRight node="realTurnFrontRight" lightTypes="0" />
			</low>
        </realLights>
        <staticLightCompounds>
            <staticLightCompound>
				<node node="lightbarleds" intensity="10"/>
				<node node="turnLeftGlass" intensity="10"/>
				<node node="turnRightGlass" intensity="10"/>
				<node node="runFront" intensity="5"/>
			</staticLightCompound>
        </staticLightCompounds>		
    </lights>

    <winch>
        <rope node="winchRopeNode" triggerNode="winchTrigger" maxTreeMass="30" maxNumTrees="10" minLength="0.25" maxLength="60" maxSubLength="10">
            <mainRope diameter="0.01" uvScale="4" />
            <setupRope diameter="0.01" uvScale="4" emissiveColor="0 2 0 1" />
            <attach node="winchRopeNode">
                <marker width="0.1" offset="0.005" color="0 2 0"/>
            </attach>
            <treeHook filename="$data/shared/forestry/treeHook03.xml"/>
            <objectChange node="winch_hook" visibilityActive="false" visibilityInactive="true" />
            <objectChange node="winch_cable_endLoop" visibilityActive="false" visibilityInactive="true" />

            <animationNodes>
                <animationNode node="winch_spool" rotSpeed="-75" rotAxis="1" turnOnFadeTime="0.1" turnOffFadeTime="0.1" speedFunc="getWinchRopeSpeedFactor" speedFuncParam="1"/>
            </animationNodes>

            <sounds>
                <releaseRope template="winchIn" />
                <pullRope template="winchOut" />
                <attachTree template="treeAttach"/>
                <detachTree template="yarderRemove"/>
            </sounds>
        </rope>
    </winch>

    <cylindered>
        <movingTools>
            <controlGroups>
				<controlGroup name="Neck" />
			</controlGroups>
			<movingTool node="front_main.001" playSound="false" isConsumingPower="true">
                <controls groupIndex="1" axis="AXIS_FRONTLOADER_ARM" invertAxis="false" mousespeedFactor="1" />
				<animation animSpeed="1" animAcceleration="1" animName="neck" animStartTime="0" />	
				<attacherJoint jointIndices="1" />   
                <dependentPart node="front_cylinders" />	 
            </movingTool>
        </movingTools>
        <movingParts>
            <movingPart node="front_cylinders" referencePoint="front_cylinders_ref" referenceFrame="front_cylinders_ref" playSound="true" >
                <translatingPart node="front_cylinders_punch" />
            </movingPart>
        </movingParts>
     </cylindered>

    <animations>
        <animation name="moveSupport" >
            <part node="blockLeft" startTime="0.0" endTime="0.15" startTrans="0 1.00399995 2.73542166" endTrans="0 1.74000001 2.68204236" />
            <part node="blockLeft" startTime=".15" endTime="1" startTrans="0 1.74000001 2.68204236" endTrans="1.45000005 1.74000001 2.68204236" />
            <part node="blockLeft" startTime="1.5" endTime="2" startTrans="1.45000005 1.74000001 2.68204236" endTrans="1.45000005 -0.51899999 -0.0548463"/>
            <part node="blockLeft" startTime="2" endTime="2.5" startTrans="1.45000005 -0.51899999 -0.0548463" endTrans="0.92199999 -0.491 -0.0548463" />
            <part node="blockRight" startTime="0.0" endTime="0.15" startTrans="-0.00025899 1.00300002 2.47193789" endTrans="0.07741705 1.74000001 2.50626659" />
            <part node="blockRight" startTime=".15" endTime="1" startTrans="0.07741705 1.74000001 2.50626659" endTrans="-1.45000005 1.74000001 2.50626659"/>
            <part node="blockRight" startTime="1.5" endTime="2" startTrans="-1.45000005 1.74000001 2.50626659" endTrans="-1.45000005 -0.51499999 -0.0548463"/>
            <part node="blockRight" startTime="2" endTime="2.5" startTrans="-1.45000005 -0.51499999 -0.05484633" endTrans="-0.92243302 -0.491 -0.0548463" />
        </animation>
		<animation name="neck">
            <part node="front_main.002" startTime="0" endTime="1" startRot="0 0 0" endRot="30 0 0" />
            <part node="front_main.001" startTime="1" endTime="2" startRot="0 0 0" endRot="8 0 0" />
        </animation>
	</animations>
   
	<baseColorConfigurations useDefaultColors="true">
        <baseColorConfiguration materialTemplateName="VOLVO_RED1"/>	
        <baseColorConfiguration materialTemplateName="VOLVO_BLACK1"/>
        <baseColorConfiguration materialTemplateName="VOLVO_PURPLE1"/>
        <baseColorConfiguration materialTemplateName="VOLVO_BM_GREEN1"/>
        <baseColorConfiguration materialTemplateName="VOLVO_YELLOW1"/>
        <baseColorConfiguration materialTemplateName="VOLVO_GREY1"/>
		<material materialSlotName="mainPaint"/>
    </baseColorConfigurations>
	
	<designColorConfigurations useDefaultColors="true">
        <designColorConfiguration materialTemplateName="VOLVO_BLACK1"/>
		<designColorConfiguration materialTemplateName="VOLVO_RED1"/>	
        <designColorConfiguration materialTemplateName="VOLVO_PURPLE1"/>
        <designColorConfiguration materialTemplateName="VOLVO_BM_GREEN1"/>
        <designColorConfiguration materialTemplateName="VOLVO_YELLOW1"/>
        <designColorConfiguration materialTemplateName="VOLVO_GREY1"/>
		<designColorConfiguration materialTemplateName="chrome" name="$l10n_ui_colorChrome"/>
		<material materialSlotName="mainPaint2"/>
    </designColorConfigurations>
	
	<designColor2Configurations useDefaultColors="true">
        <designColor2Configuration name="White" color="SHARED_WHITE2" price="0"/>
		<designColor2ColorConfiguration materialTemplateName="VOLVO_RED1"/>	
        <designColor2ColorConfiguration materialTemplateName="VOLVO_BLACK1"/>
        <designColor2ColorConfiguration materialTemplateName="VOLVO_PURPLE1"/>
        <designColor2ColorConfiguration materialTemplateName="VOLVO_BM_GREEN1"/>
        <designColor2ColorConfiguration materialTemplateName="VOLVO_YELLOW1"/>
        <designColor2ColorConfiguration materialTemplateName="VOLVO_GREY1"/>
		<designColor2Configuration materialTemplateName="chrome" name="$l10n_ui_colorChrome"/>
		<material materialSlotName="mainLogo"/>
    </designColor2Configurations>
	
	<foliageBending>
        <bendingNode minX="-1.5" maxX="1.5" minZ="-1" maxZ="1" yOffset="0.3" />
    </foliageBending>
	
	<wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2" />
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2" />
    
	<i3dMappings>
        <i3dMapping id="lowboy_main_component1" node="0>" />
        <i3dMapping id="attach" node="0>0" />
        <i3dMapping id="connectionHoses" node="0>1" />
        <i3dMapping id="airDoubleRed" node="0>1|0" />
        <i3dMapping id="airDoubleYellow" node="0>1|1" />
        <i3dMapping id="electric" node="0>1|2" />
        <i3dMapping id="electric_flap" node="0>1|3" />
        <i3dMapping id="electric_metal" node="0>1|4" />
        <i3dMapping id="other" node="0>1|5" />
        <i3dMapping id="hose1Top_ref" node="0>1|6" />
        <i3dMapping id="hose2Top_ref" node="0>1|7" />
        <i3dMapping id="movingParts_front" node="0>2" />
        <i3dMapping id="front_main.001" node="0>2|0" />
        <i3dMapping id="front_reflectionTapeRed.001" node="0>2|0|0" />
        <i3dMapping id="front_reflectionTapeWhite.001" node="0>2|0|1" />
        <i3dMapping id="front_cylinders" node="0>2|0|2" />
        <i3dMapping id="front_cylinders_punch" node="0>2|0|2|0" />
        <i3dMapping id="attacherTrailer" node="0>2|0|3" />
        <i3dMapping id="mudflapper" node="0>2|0|4" />
        <i3dMapping id="front_main.blk001" node="0>2|0|5" />
        <i3dMapping id="front_main_blk" node="0>2|0|6" />
        <i3dMapping id="engine" node="0>2|0|7" />
        <i3dMapping id="collision.005" node="0>2|0|8" />
        <i3dMapping id="collision" node="0>2|0|9" />
        <i3dMapping id="collision.004" node="0>2|0|10" />
        <i3dMapping id="front_main.002" node="0>2|0|11"/>
		<i3dMapping id="front_main.004" node="0>2|0|12"/>
		<i3dMapping id="front_cylinders_ref" node="0>2|1" />
        <i3dMapping id="vis_front" node="0>3"/>
		<i3dMapping id="batteryBox" node="0>3|0"/>
		<i3dMapping id="decals.001" node="0>3|1"/>
		<i3dMapping id="decals.002" node="0>3|2"/>
		<i3dMapping id="decals.003" node="0>3|3"/>
		<i3dMapping id="front_main" node="0>3|4"/>
		<i3dMapping id="front_reflectionTapeRed" node="0>3|5"/>
		<i3dMapping id="front_reflectionTapeWhite" node="0>3|6"/>
		<i3dMapping id="sides_blk" node="0>3|7"/>
        <i3dMapping id="light" node="0>3|8"/>
		<i3dMapping id="attachHoses" node="0>3|9"/>
		<i3dMapping id="end2" node="0>3|9|0"/>
		<i3dMapping id="end3" node="0>3|9|1"/>
		<i3dMapping id="hoses" node="0>3|9|2"/>
		<i3dMapping id="lightBarGlass" node="0>3|10"/>
        <i3dMapping id="engine.001" node="0>3|11" />
        <i3dMapping id="engine.003" node="0>3|12" />
		<i3dMapping id="blocks" node="0>4" />
        <i3dMapping id="blockLeft" node="0>4|0" />
        <i3dMapping id="blockLeft.001_col" node="0>4|0|0" />
        <i3dMapping id="blockRight" node="0>4|1" />
        <i3dMapping id="blockRight.001_col" node="0>4|1|0" />
        <i3dMapping id="lights" node="0>5"/>
		<i3dMapping id="lightbarleds" node="0>5|0"/>
		<i3dMapping id="reallightBar" node="0>5|1"/>
		<i3dMapping id="Turns" node="0>5|2"/>
		<i3dMapping id="turnLeftGlass" node="0>5|2|0"/>
		<i3dMapping id="turnRightGlass" node="0>5|2|1"/>
		<i3dMapping id="lights_rubbers.002" node="0>5|3"/>
		<i3dMapping id="runFront" node="0>5|4"/>
		<i3dMapping id="realRunFrontRight" node="0>5|5"/>
		<i3dMapping id="realRunFrontLeft" node="0>5|5|0"/>
		<i3dMapping id="realTurnFrontLeft" node="0>5|6"/>
		<i3dMapping id="realTurnFrontRight" node="0>5|7"/>
        <i3dMapping id="winch" node="0>6" />
        <i3dMapping id="winchRopeNode" node="0>6|0" />
        <i3dMapping id="winch_cable" node="0>6|1" />
        <i3dMapping id="winch_cable_endLoop" node="0>6|2" />
        <i3dMapping id="winch_grey" node="0>6|3" />
        <i3dMapping id="winch_hook" node="0>6|4" />
        <i3dMapping id="winch_spool" node="0>6|5" />
        <i3dMapping id="winchTrigger" node="0>6|6" />
        <i3dMapping id="front_main" node="0>6|7" />
        <i3dMapping id="attachHoses001" node="0>7" />
        <i3dMapping id="end2_1" node="0>7|0" />
        <i3dMapping id="end3_1" node="0>7|1" />
        <i3dMapping id="hoses_1" node="0>7|2" />
        <i3dMapping id="collisions" node="0>8" />
        <i3dMapping id="collision.009" node="0>8|0" />
        <i3dMapping id="collision.010" node="0>8|1" />
      </i3dMappings>
</vehicle>
