<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="perzlRoundBaleFork" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>$l10n_shopItem_frontloaderRoundBaleFork</name>
        <specs>
            <combination filterCategory="frontLoaders" />
            <combination filterCategory="frontLoaderVehicles" />
        </specs>
        <functions>
            <function>$l10n_function_frontloaderRoundBaleFork</function>
        </functions>
        <image>RoundBaleFork/store_roundBaleFork.png</image>
        <price>1230</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
		<shopTranslationOffset>0 0.05 0</shopTranslationOffset>
        <brand>PERZL</brand>
        <category>frontLoaderTools</category>
        <vertexBufferMemoryUsage>141312</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>26112</indexBufferMemoryUsage>
        <textureMemoryUsage>917504</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_frontloaderTool</typeDesc>
        <filename>RoundBaleFork/RoundBaleFork.i3d</filename>
        <size width="1.6" length="1.6"/>
        <components>
            <component centerOfMass="0 0 0.35" solverIterationCount="10" mass="95" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>
	
	<designConfigurations>
        <designConfiguration name="$l10n_configurationValue_oldDesign" >
		    <objectChange node="decalOld" visibilityActive="true" visibilityInactive="false" />
		</designConfiguration>
        <designConfiguration name="$l10n_configurationValue_newDesign">
			<objectChange node="decalNew" visibilityActive="true" visibilityInactive="false" />
		</designConfiguration>
    </designConfigurations>

    <attachable>
        <inputAttacherJoints>
			<inputAttacherJoint node="attacherJoint" topReferenceNode="topReferenceNode" jointType="implement" isControllable="true" needsLowering="false" lowerRotLimitScale="0 0 0" upperRotLimitScale="0 0 0" lowerTransLimitScale="0 0 0" upperTransLimitScale="0 0 0" upperRotationOffset="0" >
                <distanceToGround lower="0" upper="0.9" />
            </inputAttacherJoint>
            <inputAttacherJoint node="attacherJointFrontloader" jointType="frontloader" />
        </inputAttacherJoints>
    </attachable>
	
	<connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn" adapterNode="hydraulicIn_detached"  length="1.1" diameter="0.015" straighteningFactor="1" >
           <objectChange node="hydraulicIn_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
		<hose inputAttacherJointIndices="2" type="hydraulicIn"  node="hydraulicIn" adapterNode="hydraulicIn_detached"  length="0.3" diameter="0.015" straighteningFactor="1" >
           <objectChange node="hydraulicIn_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>
	
	<attacherJointControl maxTiltAngle="40" >
		<control controlFunction="controlAttacherJointHeight" controlAxis="AXIS_HYDRAULICATTACHER1" invertControlAxis="true" mouseSpeedFactor="0.3" iconName="IMPLEMENT_ATTACHER_TRANS"/>
		<control controlFunction="controlAttacherJointTilt"   controlAxis="AXIS_HYDRAULICATTACHER2" invertControlAxis="true" mouseSpeedFactor="0.3" iconName="IMPLEMENT_ATTACHER_ROTX"/>
    
		<sounds>
            <hydraulic template="defaultHydraulicSound" linkNode="0>" volumeScale="1" />
        </sounds>
	</attacherJointControl>
	
	<animations>
		<animation name="movingArms" >
			<part node="armLeft"       startTime="0.0" endTime="3.0" startTrans="0.339 0.112 -0.574" endTrans="0.177 0.135 -0.574" />
			<part node="armRight"      startTime="0.0" endTime="3.0" startTrans="-0.339 0.112 -0.574" endTrans="-0.177 0.135 -0.574" />
			
			<part node="ropeLeft_baseBone"      startTime="0.0" endTime="3.0" startRot="0 0 0" endRot="0 6 -55" />
			<part node="ropeRight_baseBone"      startTime="0.0" endTime="3.0" startRot="0 0 0" endRot="0 -6 55" />
			
			<part node="ropeLeft_armBone"      startTime="0.0" endTime="3.0" startRot="0 0 8" endRot="0 -4 36" />
			<part node="ropeRight_armBone"      startTime="0.0" endTime="3.0" startRot="0 0 -8" endRot="0 4 -36" />
			
			<sound template="clackVar4" startTime="0.0" volumeScale="0.65" pitchScale="1.2"/>
			<sound template="clackVar6" startTime="3.0" volumeScale="0.45" pitchScale="1.2"/>
		</animation>
	</animations>
	
	<cylindered>
		<movingTools>
			<movingTool node="armRight">
				<controls axis="AXIS_FRONTLOADER_TOOL2" invertAxis="true" mouseSpeedFactor="0.2" iconName="WORKING_WIDTH_TRANSLATE_X" />
				<animation animSpeed="0.7" animAcceleration="5" animName="movingArms" animStartTime="0" />
			</movingTool>
		</movingTools>
		
		<movingParts>
			<movingPart node="armsHydraulic" referencePoint="armsHydraulic_ref" referenceFrame="armsHydraulic_ref" isActiveDirty="true" maxUpdateDistance="50" >
				<translatingPart node="armsHydraulic_punch" />
			</movingPart>
		</movingParts>
		
		<sounds>
            <actionSound template="defaultHydraulicSound" pitchScale="0.6" volumeScale="1.5"   linkNode="armRight"      actionNames="TOOL_MOVE_POS TOOL_MOVE_NEG"     nodes="armRight"/>
        </sounds>
	</cylindered>

    <ai>
        <agentAttachment width="1.4" height="0.8" length="1.4" lengthOffset="0"/>
    </ai>

    <baseMaterial>
        <material name="perzlFrontloadertools_mat" baseNode="roundBaleFork_vis">
			<shaderParameter name="colorMat1" value="PERZL_RED"/>
        </material>
    </baseMaterial>

    <foliageBending>
        <bendingNode minX="-0.7" maxX="0.7" minZ="-0.4" maxZ="-0.75" yOffset="0" />
    </foliageBending>

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

  <i3dMappings>
    <i3dMapping id="roundBaleFork_main_component1" node="0>"/>
    <i3dMapping id="roundBaleFork_vis" node="0>0"/>
    <i3dMapping id="attacherJoint" node="0>0|0|0"/>
    <i3dMapping id="topReferenceNode" node="0>0|0|0|0"/>
    <i3dMapping id="attacherJointFrontloader" node="0>0|0|1"/>
    <i3dMapping id="decalNew" node="0>0|1|0"/>
    <i3dMapping id="decalOld" node="0>0|1|1"/>
    <i3dMapping id="armLeft" node="0>0|2|0"/>
    <i3dMapping id="armsHydraulic_ref" node="0>0|2|0|1"/>
    <i3dMapping id="armRight" node="0>0|2|1"/>
    <i3dMapping id="armsHydraulic" node="0>0|2|1|1"/>
    <i3dMapping id="armsHydraulic_punch" node="0>0|2|1|1|1"/>
    <i3dMapping id="hydraulicIn" node="0>0|0|2|0"/>
    <i3dMapping id="hydraulicIn_detached" node="0>1|1"/>
	
	<i3dMapping id="ropeLeft_baseBone" node="0>0|2|2"/>
    <i3dMapping id="ropeLeft_armBone" node="0>0|2|0|2"/>
    <i3dMapping id="ropeRight_baseBone" node="0>0|2|3"/>
    <i3dMapping id="ropeRight_armBone" node="0>0|2|1|2"/>
  </i3dMappings>
</vehicle>
