<?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_frontloaderLogFork</name>
        <specs>
            <combination filterCategory="frontLoaders"/>
            <combination filterCategory="frontLoaderVehicles"/>
        </specs>
        <functions>
            <function>$l10n_function_frontloaderLogFork</function>
        </functions>
        <image>$data/vehicles/albutt/frontloaderLogFork/store_albuttFrontloaderLogFork.png</image>
        <price>3000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>ALBUTT</brand>
        <category>frontLoaderTools</category>
        <shopHeight>1.5</shopHeight>
        <shopTranslationOffset>0 -0.002 0</shopTranslationOffset>
        <shopRotationOffset>1.002 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>177920</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>49408</indexBufferMemoryUsage>
        <textureMemoryUsage>786432</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_frontloaderTool</typeDesc>
        <filename>i3d/frontloaderLogFork.i3d</filename>
        <size width="1.45" length="1.2" height="1.05"/>
        <components>
            <component centerOfMass="0 0.1 0" solverIterationCount="30" mass="225" />
            <component solverIterationCount="25" mass="225" />
            <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="frontloader" />
        </inputAttacherJoints>
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn" node="hydraulicIn01" adapterNode="hydraulicIn01_connector" length="0.5" diameter="0.015" isTwoPointHose="true">
           <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" adapterNode="hydraulicOut01_connector" length="0.5" diameter="0.015" isTwoPointHose="true">
            <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <!-- <logGrab> -->
        <!-- <grab jointNode="frontloaderLogFork_main_component1" jointRoot="frontloaderLogFork_main_component1" lockAllAxis="true" rotLimit="2"> -->
            <!-- <trigger node="dynamicMountTrigger" /> -->
            <!-- <treeDetection node="grabTreeDetectionNode" sizeY="1.2" 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.2" iconName="TOOL_OPEN_CLOSE" />
                <rotation rotationAxis="1" rotSpeed="50" rotAcceleration="250" rotMax="3" rotMin="-108" />
                <componentJoint index="1" anchorActor="0" />
                <dependentPart node="grab" />
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="grab" referencePoint="grabRef" referenceFrame="grabJoint" limitedAxis="1" isActiveDirty="true" maxUpdateDistance="100">
                <dependentPart node="grabHydraulic" />
            </movingPart>
            <movingPart node="grabHydraulic" referencePoint="grabHydraulicRef" referenceFrame="grabHydraulicRefFrame" >
                <translatingPart node="grabHydraulicPunch" />
            </movingPart>
        </movingParts>

        <sounds>
            <actionSound template="hydraulicOpen05"             pitchScale="1.7"  volumeScale="1.8" actionNames="TOOL_MOVE_POS TOOL_MOVE_NEG" nodes="grabJoint" fadeIn="0.1" fadeOut="0.1"/>
            <actionSound template="MetalBalerGraberSmallImpact" pitchScale="0.75" volumeScale="1.5" linkNode="grabJoint" actionNames="TOOL_MOVE_END_NEG_LIMIT" nodes="grabJoint"/>
            <actionSound template="grabImp"                     pitchScale="0.7"  volumeScale="0.6" linkNode="grabJoint" actionNames="TOOL_MOVE_END_POS_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="1.45" height="1.05" length="1.05" lengthOffset="0.05"/>
    </ai>

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

    <foliageBending>
        <bendingNode minX="-0.7" maxX="0.7"  minZ="-0.5" maxZ="-0.2" yOffset="0.02" />
        <bendingNode minX="0.7"  maxX="0.5"  minZ="-0.25"  maxZ="0.6" yOffset="0.02" />
        <bendingNode minX="-0.7" maxX="-0.5" minZ="-0.25"  maxZ="0.6" yOffset="0.02" />
    </foliageBending>
	
	<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>
	
	<baseColorConfigurations useDefaultColors="true" price="50">
        <baseColorConfiguration materialTemplateName="ALBUTT_BLACK1"/>
		
        <material materialSlotName="fork_mat"/>
    </baseColorConfigurations>
	
	<designColorConfigurations title="$l10n_claw" useDefaultColors="true" price="50">
        <designColorConfiguration materialTemplateName="ALBUTT_RED1" />

        <material materialSlotName="claw_mat"/>
    </designColorConfigurations>
	
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90"  workMultiplier="2" fieldMultiplier="2" washDuration="1"/>

    <i3dMappings>
        <i3dMapping id="frontloaderLogFork_main_component1" node="0>" />
        <i3dMapping id="frontloaderLogFork_vis" node="0>0" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
        <i3dMapping id="hydraulicIn01" node="0>0|0|1|0" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|0|1|0|0" />
        <i3dMapping id="hydraulicIn01_connector" node="0>0|0|1|0|0|0" />
        <i3dMapping id="hydraulicOut01" node="0>0|0|1|1" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|0|1|1|0" />
        <i3dMapping id="hydraulicOut01_connector" node="0>0|0|1|1|0|0" />
        <i3dMapping id="grabJoint" node="0>0|1" />
        <i3dMapping id="grabTreeDetectionNode" node="0>0|2" />
        <i3dMapping id="grab" node="0>0|3" />
        <i3dMapping id="grabHydraulicRef" node="0>0|3|0" />
        <i3dMapping id="grabHydraulicRefFrame" node="0>0|4" />
        <i3dMapping id="grabHydraulic" node="0>0|4|0" />
        <i3dMapping id="grabHydraulicPunch" node="0>0|4|0|0" />
        <i3dMapping id="dynamicMountTrigger" node="0>0|5" />
        <i3dMapping id="tensionBeltMesh01" node="0>2|6" />
        <i3dMapping id="frontloaderLogFork_grab_component2" node="1>" />
        <i3dMapping id="grabRef" node="1>0" />
		<i3dMapping id="tensionBelts" node="0>0|9"/>
		<i3dMapping id="startPoint01" node="0>0|9|0"/>
		<i3dMapping id="startPoint01End" node="0>0|9|0|0"/>
		<i3dMapping id="startPoint02" node="0>0|9|1"/>
		<i3dMapping id="startPoint02End" node="0>0|9|1|0"/>
		<i3dMapping id="beltActivationTrigger" node="0>0|9|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>
