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

    <storeData>
        <name>$l10n_shopItem_wheelLoaderFork</name>
        <specs>
            <combination filterCategory="wheelLoaderVehicles" />
        </specs>
        <functions>
            <function>$l10n_function_frontloaderPalletFork</function>
        </functions>
        <image>$data/vehicles/volvo/l120HPalletFork/store_l120HPalletFork.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>61184</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>15104</indexBufferMemoryUsage>
        <textureMemoryUsage>1310720</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_wheelLoaderTool</typeDesc>
        <filename>i3d/l120HPalletFork.i3d</filename>
        <size width="1.52" length="1.6" height="1.02"/>
        <components>
            <component centerOfMass="0 0.2 -0.3" solverIterationCount="10" mass="300" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="wheelLoader" />
        </inputAttacherJoints>
    </attachable>

    <cylindered>
        <movingTools>
            <movingTool node="forkLeft">
                <controls axis="AXIS_FRONTLOADER_TOOL2" invertAxis="false" mouseSpeedFactor="0.2" iconName="WORKING_WIDTH_TRANSLATE_X" />
                <dependentMovingTool node="forkRight" speedScale="-1"/>
				<dependentMovingTool node="startPoint01" speedScale="1"/>
				<dependentMovingTool node="startPoint02" speedScale="-1"/>
                <translation translationAxis="1" transSpeed="0.25" transAcceleration="50" transMin="-0.145" transMax="0.409" startTrans="0.1"/>
            </movingTool>

            <movingTool node="forkRight">
                <translation translationAxis="1" transSpeed="0.25" transAcceleration="50" transMin="-0.409" transMax="0.145" startTrans="-0.1"/>
            </movingTool>
			
			<movingTool node="startPoint01">
                <translation translationAxis="1" transSpeed="0.2" transAcceleration="50" transMin="0.082" transMax="0.636" startTrans="0.1"/>
            </movingTool>
			
			<movingTool node="startPoint02">
                <translation translationAxis="1" transSpeed="0.2" transAcceleration="50" transMin="-0.636" transMax="-0.082" startTrans="-0.1"/>
            </movingTool>
        </movingTools>
        <sounds>
            <actionSound template="metalScrape" volumeScale="0.8" pitchScale="1"   linkNode="l120HPalletFork_main_component1" actionNames="TOOL_MOVE_POS TOOL_MOVE_NEG"                     nodes="forkLeft" fadeIn="0.1" fadeOut="0.1" />
            <actionSound template="grabImp"     volumeScale="4.8" pitchScale="1.1" linkNode="l120HPalletFork_main_component1" actionNames="TOOL_MOVE_END_NEG_LIMIT TOOL_MOVE_END_POS_LIMIT" nodes="forkLeft" />
        </sounds>
    </cylindered>
	
	<tensionBelts>
        <tensionBeltsConfigurations>
            <tensionBeltsConfiguration>
                <tensionBelts linkNode="tensionBelts" jointNode="0>" maxEdgeLength="0.1" geometryBias="0.01" ratchetPosition="0.2" defaultOffset="0.1" defaultOffsetSide="0.1" defaultHeight="4" activationTrigger="beltActivationTrigger">
                    <tensionBelt startNode="startPoint01" endNode="startPoint01End" offsetLeft="0.2" />
                    <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="forkCollision01" startTime="0" endTime="0.1" startScale="1 1 1" endScale="0 0 0"/>
			<part node="logoColorMaskL_decals" 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="forkCollision02" startTime="0" endTime="0.1" startScale="1 1 1" endScale="0 0 0"/>
			<part node="logoColorMaskR_decals" 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"/>
        </animation>
    </animations>
	
    <dynamicMountAttacher node="jointNode">
        <fork node="forkCollision01" />
        <fork node="forkCollision02" />
    </dynamicMountAttacher>

    <ai>
        <agentAttachment width="1.52" height="1.02" length="1.6"/>
    </ai>

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

    <foliageBending>
        <bendingNode minX="-0.75" maxX="0.75" minZ="-0.8" maxZ="-0.5" yOffset="0.15" />
        <bendingNode minX="-0.09" maxX="0.09" minZ="-0.03" maxZ="1.27" yOffset="-0.48" node="forkLeft" />
        <bendingNode minX="-0.09" maxX="0.09" minZ="-0.03" maxZ="1.27" yOffset="-0.48" node="forkRight" />
    </foliageBending>
	
	<baseColorConfigurations  useDefaultColors="true" price="50">>
        <baseColorConfiguration materialTemplateName="VOLVO_GREY1"/>
        
        <material materialSlotName="fork_mat"/>
    </baseColorConfigurations>
	
	<designConfigurations title="$l10n_visiblebelts" isYesNoOption="true" isDefault="true">
		<designConfiguration name="$l10n_configuration_valueNo" price="0">
		<objectChange node="tensionBelts" visibilityActive="false" visibilityInactive="true"/>
		</designConfiguration>
		
		<designConfiguration name="$l10n_configuration_valueYes" price="0" >
		<objectChange node="tensionBelts" visibilityActive="true" visibilityInactive="false"/>
		</designConfiguration>
	</designConfigurations>
	
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="2" fieldMultiplier="2"/>

    <i3dMappings>
        <i3dMapping id="l120HPalletFork_main_component1" node="0>" />
        <i3dMapping id="l120HPalletFork_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0" />
        <i3dMapping id="jointNode" node="0>0|1" />
        <i3dMapping id="forkLeft" node="0>0|2|0|0" />
        <i3dMapping id="forkCollision01" node="0>0|2|0|0|0" />
        <i3dMapping id="tensionBeltMesh02" node="0>0|2|0|0|2" />
        <i3dMapping id="forkRight" node="0>0|2|1|0" />
        <i3dMapping id="forkCollision02" node="0>0|2|1|0|0" />
        <i3dMapping id="logoColorMaskL_decals" node="0>0|2|0|0|1" />
		<i3dMapping id="logoColorMaskR_decals" node="0>0|2|1|0|1" />
        <i3dMapping id="tensionBeltMesh03" node="0>0|2|1|0|2" />
        <i3dMapping id="tensionBeltMesh01" node="0>0|4" />
		<i3dMapping id="tensionBelts" node="0>0|5"/>
		<i3dMapping id="startPoint01" node="0>0|5|0"/>
		<i3dMapping id="startPoint01End" node="0>0|5|0|0"/>
		<i3dMapping id="startPoint02" node="0>0|5|1"/>
		<i3dMapping id="startPoint02End" node="0>0|5|1|0"/>
		<i3dMapping id="beltActivationTrigger" node="0>0|5|2"/>
    </i3dMappings>
</vehicle>
