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

    <storeData>
        <name>SitePro</name>
        <specs>
            <combination filterCategory="wheelLoaderVehicles"/>
        </specs>
        <functions>
            <function>$l10n_function_frontloaderLogFork</function>
        </functions>
        <image>$data/vehicles/albutt/wheelLoaderLogFork/store_wheelLoaderLogFork.png</image>
        <price>6500</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>ALBUTT</brand>
        <category>wheelLoaderTools</category>
        <shopHeight>1.6</shopHeight>
        <shopTranslationOffset>0 -0.034 0</shopTranslationOffset>
        <shopRotationOffset>0.002 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>203008</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>58624</indexBufferMemoryUsage>
        <textureMemoryUsage>1245184</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_telehandlerTool</typeDesc>
        <filename>i3d/wheelLoaderLogFork.i3d</filename>
        <size width="2.5" length="1.1" height="1.1" lengthOffset="-0.16"/>
        <components>
            <component centerOfMass="0 0.1 0" solverIterationCount="10" mass="600"/>
            <component solverIterationCount="10" mass="420"/>
            <joint component1="1" component2="2" node="grabJoint" rotLimit="0 0 0" transLimit="0 0 0" rotLimitSpring="300 0 0" rotLimitDamping="30 0 0" rotLimitForceLimit="30 -1 -1"/>
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT"/>
        <mapHotspot type="TOOL"/>
    </base>

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

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn" node="hydraulicIn01" length="0.5" diameter="0.02" straighteningFactor="1.5">
            <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" length="0.5" diameter="0.02" straighteningFactor="1.5">
            <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <!-- <logGrab>
        <grab jointNode="wheelLoaderLogFork_main_component1" jointRoot="wheelLoaderLogFork_main_component1" lockAllAxis="true" rotLimit="2">
            <trigger node="dynamicMountTrigger" />
            <treeDetection node="grabTreeDetectionNode" sizeY="1.5" sizeZ="1.5"/>

            <claw componentJointIndex="1" axis="1" rotationOffsetThreshold="10" rotationOffsetInverted="true" rotationOffsetTime="1000">
                <movingTool node="grabJoint" direction="1"/>
            </claw>
        </grab>
    </logGrab> -->

    <cylindered>
        <movingTools>
            <movingTool node="grabJoint" playSound="true" >
                <controls axis="AXIS_FRONTLOADER_TOOL2" invertAxis="true" mouseSpeedFactor="0.25" iconName="TOOL_OPEN_CLOSE" />
                <rotation rotationAxis="1" rotSpeed="50" rotAcceleration="250" rotMax="15" rotMin="-70" />
                <componentJoint index="1" anchorActor="0" />
                <dependentPart node="grab" />
            </movingTool>
        </movingTools>
        <movingParts>
            <movingPart node="grab" referencePoint="grabRef" referenceFrame="grabJoint" limitedAxis="1" isActiveDirty="true" maxUpdateDistance="250">
                <dependentPart node="hydraulic" />
            </movingPart>
            <movingPart node="hydraulic" referencePoint="hydraulicRef" referenceFrame="hydraulicRef" >
                <translatingPart node="hydraulicPunch" />
            </movingPart>
        </movingParts>

        <sounds>
            <actionSound template="hydraulicOpen02"       pitchScale="1.3"  volumeScale="1.4" linkNode="grabJoint" actionNames="TOOL_MOVE_POS"           nodes="grabJoint" fadeIn="0.1" fadeOut="0.1"/>
            <actionSound template="hydraulicClose01"      pitchScale="0.85" volumeScale="1.8" linkNode="grabJoint" actionNames="TOOL_MOVE_NEG"           nodes="grabJoint" fadeIn="0.1" fadeOut="0.1"/>
            <actionSound template="grabImp"               pitchScale="0.7"  volumeScale="0.8" linkNode="grabJoint" actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="grabJoint"/>
            <actionSound template="metalImpHigh01"        pitchScale="0.7"  volumeScale="0.8" linkNode="grabJoint" actionNames="TOOL_MOVE_END_POS_LIMIT" nodes="grabJoint"/>
            <actionSound template="grabImp"               pitchScale="0.7"  volumeScale="0.8" linkNode="grabJoint" actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="grabJoint"/>
            <actionSound template="trailerCloseImpact_01" pitchScale="0.7"  volumeScale="0.8" linkNode="grabJoint" actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="grabJoint"/>
        </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="1" 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="colPart01" startTime="0" endTime="0.1" startScale="1 1 1" endScale="0 0 0"/>
			<part node="colPart02" startTime="0" endTime="0.1" startScale="1 1 1" endScale="0 0 0"/>
			<part node="colPart03" startTime="0" endTime="0.1" startScale="1 1 1" endScale="0 0 0"/>
			<part node="colPart04" startTime="0" endTime="0.1" startScale="1 1 1" endScale="0 0 0"/>
			<part node="tensionBeltMesh01" startTime="0" endTime="0.1" startScale="1 1 1" endScale="0 0 0"/>
	
        </animation>
    </animations>
	
    <ai>
        <agentAttachment width="2.5" height="1.07" length="1.1" lengthOffset="-0.16"/>
    </ai>

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

    <foliageBending>
        <bendingNode minX="-1.25" maxX="1.25" minZ="-0.5" maxZ="0.15" yOffset="0.02"/>
    </foliageBending>
	
	<baseColorConfigurations useDefaultColors="true" price="50">
        <baseColorConfiguration materialTemplateName="ALBUTT_BLACK1" isDefault="true" />
		
        <material materialSlotName="fork_mat"/>
    </baseColorConfigurations>
	
	<designColorConfigurations title="$l10n_claw" useDefaultColors="true" price="50">
        <designColorConfiguration materialTemplateName="ALBUTT_RED1" isDefault="true" />

        <material materialSlotName="grab_color_mat"/>
    </designColorConfigurations>
	
	<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="wheelLoaderLogFork_main_component1" node="0>" />
        <i3dMapping id="wheelLoaderLogFork_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0" />
        <i3dMapping id="grabJoint" node="0>0|1" />
        <i3dMapping id="hydraulicIn01" node="0>0|2|0" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|2|0|0" />
        <i3dMapping id="hydraulicOut01" node="0>0|2|1" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|2|1|0" />
        <i3dMapping id="hydraulic" node="0>0|3|0" />
        <i3dMapping id="hydraulicPunch" node="0>0|3|0|0" />
        <i3dMapping id="grab" node="0>0|3|1" />
        <i3dMapping id="hydraulicRef" node="0>0|3|1|0" />
        <i3dMapping id="tensionBeltMesh02" node="0>0|3|1|1" />
        <i3dMapping id="grabTreeDetectionNode" node="0>0|4" />
        <i3dMapping id="dynamicMountTrigger" node="0>0|5" />
        <i3dMapping id="tensionBeltMesh01" node="0>2|6" />
        <i3dMapping id="grabRef" node="1>0" />
		<i3dMapping id="tensionBelts" node="0>0|8"/>
		<i3dMapping id="startPoint01" node="0>0|8|0"/>
		<i3dMapping id="startPoint01End" node="0>0|8|0|0"/>
		<i3dMapping id="startPoint02" node="0>0|8|1"/>
		<i3dMapping id="startPoint02End" node="0>0|8|1|0"/>
		<i3dMapping id="beltActivationTrigger" node="0>0|8|2"/>
		<i3dMapping id="colPart01" node="0>2|0"/>
		<i3dMapping id="colPart02" node="0>2|1"/>
		<i3dMapping id="colPart03" node="0>2|2"/>
		<i3dMapping id="colPart04" node="0>2|3"/>
    </i3dMappings>
</vehicle>
