<?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_frontloaderPalletFork</name>
        <specs>
            <combination filterCategory="skidSteerVehicles"/>
        </specs>
        <functions>
            <function>$l10n_function_frontloaderPalletFork</function>
        </functions>
        <image>$data/vehicles/paladin/palletFork/store_palletFork.png</image>
        <price>800</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>PALADIN</brand>
        <category>skidSteerTools</category>
        <shopTranslationOffset>0 -0.006 0</shopTranslationOffset>
        <shopRotationOffset>0.915 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>53248</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>13824</indexBufferMemoryUsage>
        <textureMemoryUsage>1245184</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_frontloaderTool</typeDesc>
        <filename>i3d/palletFork.i3d</filename>
        <size width="1.42" length="1.5" height="1.03" lengthOffset="0.18"/>
        <components>
            <component centerOfMass="0 0.2 0" solverIterationCount="10" mass="250" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="skidSteer" />
        </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.2" transAcceleration="50" transMin="-0.1" transMax="0.220"/>
            </movingTool>

            <movingTool node="forkRight">
                <translation translationAxis="1" transSpeed="0.2" transAcceleration="50" transMin="-0.220" transMax="0.1"/>
            </movingTool>
			
			<movingTool node="startPoint01">
                <translation translationAxis="1" transSpeed="0.2" transAcceleration="50" transMin="0.177" transMax="0.497"/>
            </movingTool>
			
			<movingTool node="startPoint02">
                <translation translationAxis="1" transSpeed="0.2" transAcceleration="50" transMin="-0.497" transMax="-0.177"/>
            </movingTool>
        </movingTools>
        <sounds>
            <actionSound template="metalScrape" volumeScale="0.8" pitchScale="1"   linkNode="forkLeft" 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="forkLeft" actionNames="TOOL_MOVE_END_NEG_LIMIT TOOL_MOVE_END_POS_LIMIT" nodes="forkLeft" fadeIn="0.1" fadeOut="0.1" />
        </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="tineCollision01" 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="tineCollision02" 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="tineCollision01" />
        <fork node="tineCollision02" />
    </dynamicMountAttacher>
	
    <ai>
        <agentAttachment width="1.2" height="1.02" length="1.5" lengthOffset="0.18"/>
    </ai>

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

    <foliageBending>
        <bendingNode minX="-0.60" maxX="0.60" minZ="-0.55" maxZ="-0.3" yOffset="0.025" />
        <bendingNode minX="-0.06" maxX="0.06" minZ="-0.40" maxZ="0.82" yOffset="0.01" node="tineCollision02" />
        <bendingNode minX="-0.06" maxX="0.06" minZ="-0.40" maxZ="0.82" yOffset="0.01" node="tineCollision02" />
    </foliageBending>

    <baseColorConfigurations useDefaultColors="true" price="50">
        <baseColorConfiguration materialTemplateName="PALADIN_GREY" isDefault="true" />
        <baseColorConfiguration materialTemplateName="PALADIN_RED"/>

        <material materialSlotName="base_color_mat"/>
        <material materialSlotName="alpha_color_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"  workMultiplier="2" fieldMultiplier="2" washDuration="1"/>

    <i3dMappings>
        <i3dMapping id="paladinPalletFork_main_component1" node="0>" />
        <i3dMapping id="paladinPalletFork_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="tineCollision01" node="0>0|2|0|0|0" />
        <i3dMapping id="tensionBeltMesh02" node="0>0|2|0|0|1" />
        <i3dMapping id="forkRight" node="0>0|2|1|0" />
        <i3dMapping id="tineCollision02" node="0>0|2|1|0|0" />
        <i3dMapping id="tensionBeltMesh03" node="0>0|2|1|0|1" />
        <i3dMapping id="alphaPart" node="0>0|3" />
        <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>
