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

    <storeData>
        <name params="$l10n_shopItem_wheelLoaderFork|L180H">%s (%s)</name>
        <specs>
            <combination xmlFilename="$data/vehicles/volvo/l180H/l180H.xml"/>
        </specs>
        <functions>
            <function>$l10n_function_frontloaderPalletFork</function>
            <function>$l10n_function_shippingContainerLoader</function>
        </functions>
        <image>$data/vehicles/volvo/l180HPalletFork/store_l180HPalletFork.png</image>
        <price>2500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>VOLVO</brand>
        <category>wheelLoaderTools</category>
        <shopTranslationOffset>0 0 0</shopTranslationOffset>
        <shopRotationOffset>0 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>53248</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>14080</indexBufferMemoryUsage>
        <textureMemoryUsage>458752</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_wheelLoaderTool</typeDesc>
        <filename>i3d/l180HPalletFork.i3d</filename>
        <size width="2.3" length="1.95" height="1.3"/>
        <components>
            <component centerOfMass="0 0.2 -0.4" solverIterationCount="30" mass="650"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT"/>
        <mapHotspot type="TOOL"/>
    </base>
	
    <designConfigurations title="$l10n_configuration_design" isYesNoOption="true" >
        <!-- Wide config -->
        <designConfiguration name="$l10n_configuration_valueWide" price="500">
            <objectChange node="forkWide" visibilityActive="true" visibilityInactive="false"/>
            <objectChange node="forkLeftWideColPart"  compoundChildActive="true" compoundChildInactive="false"/>
            <objectChange node="forkRightWideColPart" compoundChildActive="true" compoundChildInactive="false"/>
            <objectChange node="jointNode"            translationActive="0 0.092 -0.162"/>
            <objectChange node="tensionBeltMesh04"    scaleActive="1 1 1" scaleInactive="0.01 0.01 0.01"/>
            <objectChange node="tensionBeltMesh05"    scaleActive="1 1 1" scaleInactive="0.01 0.01 0.01"/>
            <foliageBendingModifier index="4" minX="-0.1" maxX="0.1" minZ="0.1" maxZ="1.58"/>
            <foliageBendingModifier index="5" minX="-0.1" maxX="0.1" minZ="0.1" maxZ="1.58"/>
			
			<objectChange node="startPoint01"      translationActive="0.846 0.089 -0.55"/>
			<objectChange node="startPoint02"      translationActive="-0.846 0.089 -0.55"/>
			<objectChange node="startPoint01End"      translationActive="0 0 1.505"/>
			<objectChange node="startPoint02End"      translationActive="0 0 1.505"/>
        </designConfiguration>

        <!-- Small config -->
        <designConfiguration name="$l10n_configuration_valueSmall" >
            <objectChange node="forkSmall" visibilityActive="true" visibilityInactive="false"/>
            <objectChange node="forkLeftSmallColPart"  compoundChildActive="true" compoundChildInactive="false"/>
            <objectChange node="forkRightSmallColPart" compoundChildActive="true" compoundChildInactive="false"/>
            <objectChange node="jointNode"             translationActive="0 0.056 -0.162"/>
            <objectChange node="tensionBeltMesh02"     scaleActive="1 1 1" scaleInactive="0.01 0.01 0.01"/>
            <objectChange node="tensionBeltMesh03"     scaleActive="1 1 1" scaleInactive="0.01 0.01 0.01"/>
            <foliageBendingModifier index="2" minX="-0.07" maxX="0.07" minZ="0.1" maxZ="1.2"/>
            <foliageBendingModifier index="3" minX="-0.07" maxX="0.07" minZ="0.1" maxZ="1.2"/>
			
			<objectChange node="startPoint01"      translationActive="0.477 0.089 -0.55"/>
			<objectChange node="startPoint02"      translationActive="-0.477 0.089 -0.55"/>
			<objectChange node="startPoint01End"      translationActive="0 0 1.090"/>
			<objectChange node="startPoint02End"      translationActive="0 0 1.090"/>	
        </designConfiguration>
    </designConfigurations>
	
	
	
    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="wheelLoader">
                <subType name="volvoL180H" showWarning="true"/>
            </inputAttacherJoint>
        </inputAttacherJoints>
    </attachable>

    <cylindered>
        <movingTools>
            <!-- Wide config -->
            <movingTool node="forkLeftWide">
                <controls axis="AXIS_FRONTLOADER_TOOL2" invertAxis="false" mouseSpeedFactor="0.2" iconName="WORKING_WIDTH_TRANSLATE_X"/>
                <dependentMovingTool node="forkRightWide"  speedScale="-1"/>
                <dependentMovingTool node="forkLeftSmall"  speedScale="1"/>
                <dependentMovingTool node="forkRightSmall" speedScale="-1"/>

			    <translation translationAxis="1" transSpeed="0.25" transAcceleration="50" transMin="-0.167" transMax="0.167" startTrans="0"/>
            </movingTool>

            <movingTool node="forkRightWide">
                <translation translationAxis="1" transSpeed="0.25" transAcceleration="50" transMin="-0.167" transMax="0.167" startTrans="0"/>
            </movingTool>
			
            <!-- Small config -->
            <movingTool node="forkLeftSmall">
                <translation translationAxis="1" transSpeed="0.25" transAcceleration="50" transMin="-0.413" transMax="0" startTrans="0"/>
            </movingTool>

            <movingTool node="forkRightSmall">
                <translation translationAxis="1" transSpeed="0.25" transAcceleration="50" transMin="0" transMax="0.413" startTrans="0"/>
            </movingTool>
        </movingTools>
        <sounds>
            <actionSound template="metalScrape"    pitchScale="1.1" volumeScale="0.6" linkNode="forkRightWide" actionNames="TOOL_MOVE_POS TOOL_MOVE_NEG " nodes="forkRightWide" fadeIn="0.1" fadeOut="0.1"/>
            <actionSound template="hingeMedium02"  pitchScale="0.5" volumeScale="0.5" linkNode="forkRightWide" actionNames="TOOL_MOVE_START_POS_LIMIT"    nodes="forkRightWide" fadeIn="0.1" fadeOut="0.3" />
            <actionSound template="clackVar6"      pitchScale="1"   volumeScale="1" linkNode="forkRightWide"   actionNames="TOOL_MOVE_END_POS_LIMIT"      nodes="forkRightWide"/>
            <actionSound template="clackVar6"      pitchScale="0.8" volumeScale="1" linkNode="forkRightWide"   actionNames="TOOL_MOVE_END_NEG_LIMIT"      nodes="forkRightWide"/>
        </sounds>
    </cylindered>
	
	<tensionBelts>
		<tensionBeltsConfigurations >			
			<tensionBeltsConfiguration  isSelectable="false" >
				<tensionBelts linkNode="tensionBelts" jointNode="0>" maxEdgeLength="0.1" geometryBias="0.01" ratchetPosition="0.2" defaultOffset="0.1" defaultOffsetSide="0.1" defaultHeight="4" activationTrigger="beltActivationTrigger">
				
					<!-- Wide config -->
					<tensionBelt startNode="startPoint01" endNode="startPoint01End" />
					<tensionBelt startNode="startPoint02" endNode="startPoint02End" />
					<sounds>
						<addBelt template="beltOpen" />
						<removeBelt template="beltClose" />
					</sounds>
				</tensionBelts>
			</tensionBeltsConfiguration>
		</tensionBeltsConfigurations>
	</tensionBelts>
			
	<foldable>
        <foldingConfigurations>
            <foldingConfiguration>
				<foldingParts posDirectionText="$l10n_addforkcollision" negDirectionText="$l10n_removeforkcollision" startAnimTime="0" detachingMinLimit="0" detachingMaxLimit="0">
					<foldingPart animationName="collisions" speedScale="1"/>
				</foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>
	
	<animations>
        <animation name="collisions">
			<part node="forkLeftSmallColPart" startTime="0" endTime="0.1" startScale="1 1 1" endScale="0 0 0"/>
			<part node="tensionBeltMesh02" startTime="0" endTime="0.1" startScale="1 1 1" endScale="0 0 0"/>
				
			<part node="forkRightSmallColPart" startTime="0" endTime="0.1" startScale="1 1 1" endScale="0 0 0"/>
			<part node="tensionBeltMesh03" startTime="0" endTime="0.1" startScale="1 1 1" endScale="0 0 0"/>
			
			<part node="forkLeftWideColPart" startTime="0" endTime="0.1" startScale="1 1 1" endScale="0 0 0"/>
			<part node="tensionBeltMesh04" startTime="0" endTime="0.1" startScale="1 1 1" endScale="0 0 0"/>
			
			<part node="forkRightWideColPart" startTime="0" endTime="0.1" startScale="1 1 1" endScale="0 0 0"/>
			<part node="tensionBeltMesh05" startTime="0" endTime="0.1" startScale="1 1 1" endScale="0 0 0"/>
	
        </animation>
    </animations>
	
    <dynamicMountAttacher node="jointNode">
        <fork node="forkLeftSmallColPart" />
        <fork node="forkRightSmallColPart" />
        <fork node="forkLeftWideColPart" />
        <fork node="forkRightWideColPart"  />
    </dynamicMountAttacher>

    <ai>
        <agentAttachment width="2.3" height="1.3" length="1.95" lengthOffset="0"/>
    </ai>

    <tensionBeltObject>
        <meshNodes>
            <meshNode node="tensionBeltMesh01"/>
            <meshNode node="tensionBeltMesh02"/>
            <meshNode node="tensionBeltMesh03"/>
            <meshNode node="tensionBeltMesh04"/>
            <meshNode node="tensionBeltMesh05"/>
        </meshNodes>
    </tensionBeltObject>

    <foliageBending>
        <bendingNode minX="-1.15" maxX="1.15" minZ="-0.8" maxZ="-0.6" yOffset="0.015"/>
        <bendingNode minX="0" maxX="0" minZ="0" maxZ="0" yOffset="-0.48" node="forkLeftSmall"/>
        <bendingNode minX="0" maxX="0" minZ="0" maxZ="0" yOffset="-0.48" node="forkRightSmall"/>
        <bendingNode minX="0" maxX="0" minZ="0" maxZ="0" yOffset="-0.48" node="forkLeftWide"/>
        <bendingNode minX="0" maxX="0" minZ="0" maxZ="0" yOffset="-0.48" node="forkRightWide"/>
    </foliageBending>
	
	<baseColorConfigurations useDefaultColors="true" price="50">
        <baseColorConfiguration materialTemplateName="VOLVO_GREY1" isDefault="true"/>
   
        <material materialSlotName="fork_mat"/>
    </baseColorConfigurations>
	
	<design3Configurations title="$l10n_visiblebelts" isYesNoOption="true" isDefault="true">
		<design3Configuration name="$l10n_configuration_valueNo" price="0">
			<objectChange node="tensionBelts" visibilityActive="false" visibilityInactive="true"/>"/>
		</design3Configuration>
		
		<design3Configuration name="$l10n_configuration_valueYes" price="0" >
			<objectChange node="tensionBelts" visibilityActive="true" visibilityInactive="false"/>
		</design3Configuration>
	</design3Configurations>
	
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="l180HPalletFork_main_component1" node="0>" />
        <i3dMapping id="l180HPalletFork_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0" />
        <i3dMapping id="jointNode" node="0>0|1" />
        <i3dMapping id="forkSmall" node="0>0|2|0" />
        <i3dMapping id="forkLeftSmall" node="0>0|2|0|0|0" />
        <i3dMapping id="forkLeftSmallColPart" node="0>0|2|0|0|0|0" />
        <i3dMapping id="tensionBeltMesh02" node="0>0|2|0|0|0|1" />
        <i3dMapping id="forkRightSmall" node="0>0|2|0|1|0" />
        <i3dMapping id="forkRightSmallColPart" node="0>0|2|0|1|0|0" />
        <i3dMapping id="tensionBeltMesh03" node="0>0|2|0|1|0|1" />
        <i3dMapping id="forkWide" node="0>0|2|1" />
        <i3dMapping id="forkLeftWide" node="0>0|2|1|0|0" />
        <i3dMapping id="forkLeftWideColPart" node="0>0|2|1|0|0|0" />
        <i3dMapping id="tensionBeltMesh04" node="0>0|2|1|0|0|1" />
        <i3dMapping id="forkRightWide" node="0>0|2|1|1|0" />
        <i3dMapping id="forkRightWideColPart" node="0>0|2|1|1|0|0" />
        <i3dMapping id="tensionBeltMesh05" node="0>0|2|1|1|0|1" />
        <i3dMapping id="tensionBeltMesh01" node="0>1|1" />
		
		<i3dMapping id="tensionBelts" node="0>0|3"/>	
		<i3dMapping id="beltActivationTrigger" node="0>0|3|2"/>
				
		<i3dMapping id="startPoint01" node="0>0|3|0"/>
		<i3dMapping id="startPoint01End" node="0>0|3|0|0"/>
		<i3dMapping id="startPoint02" node="0>0|3|1"/>
		<i3dMapping id="startPoint02End" node="0>0|3|1|0"/>
    </i3dMappings>
</vehicle>
