<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="concha" 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>Pa Traseira PTH 220</name>
        <specs>
            <workingWidth>1</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_frontloaderShovel</function>
        </functions>
        <image>store_paTraseiraPth220.png</image>
        <price>5200</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>LIZARD</brand>
        <category>misc</category>
        
        <vertexBufferMemoryUsage>216064</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>46592</indexBufferMemoryUsage>
        <textureMemoryUsage>1900544</textureMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_Pa Traseira</typeDesc>
        <filename>paTraseiraPth220.i3d</filename>
        <size width="2" length="4" />
        <components>
            <component centerOfMass=" 0 0.1 0.75" solverIterationCount="10" mass="650" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT"/>
        <mapHotspot type="TOOL" />
    </base>



    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="implement" rootNode="0>" topReferenceNode="topRefNode" isControllable="true" upperRotationOffset="-2" lowerRotationOffset="5" lowerRotLimitScale="0 0 0" lowerTransLimitScale="0 0 0">
                <distanceToGround lower="0.42" upper="1.5"/>
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="moveSupport" />
		<sounds>
            <attach template="ATTACH_01" />
        </sounds>
    </attachable>
	
	 <attacherJointControl>
        <control controlFunction="controlAttacherJointHeight" controlAxis="AXIS_CRANE_ARM2" invertControlAxis="true" mouseSpeedFactor="0.3" iconName="IMPLEMENT_ATTACHER_TRANS"/>
        <control controlFunction="controlAttacherJointTilt"   controlAxis="AXIS_CRANE_ARM" invertControlAxis="false" mouseSpeedFactor="0.3" iconName="IMPLEMENT_ATTACHER_ROTX"/>
        <sounds>
            <hydraulic template="defaultHydraulicSound" linkNode="0>" volumeScale="2" fadeIn="0.1"/>
        </sounds>
    </attacherJointControl>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn01_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn02_detachedAdapter"  filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01"  length="0.5" diameter="0.015" straighteningFactor="0.3" dampingFactor="0">
            <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn02"  length="0.5" diameter="0.015" straighteningFactor="0.3" dampingFactor="0">
        </hose>

    </connectionHoses>

    <animations>
        <animation name="moveSupport">
             <part node="0>0|0|3" startTime="1" endTime="1.01" endTrans="0 0 0" startTrans="0 0.345 0"/>   
            <part node="0>0|0|3" startTime="1" endTime="1.01" visibility="true" />   
            <part node="0>0|0|3" startTime="0" endTime="1" visibility="false" /> 
        </animation>
    </animations>
	
    <cylindered>
        <movingTools>
            <movingTool node="concha" playSound="true" >
                <controls axis="AXIS_FRONTLOADER_TOOL2" invertAxis="true" mouseSpeedFactor="0.8" iconName="FRONTLOADER_ARM_ROTATE" />
                <rotation rotSpeed="90" rotAcceleration="150" rotMax="60" rotMin="0" startRot="2.5" detachingRotMinLimit="0" />
                <dependentPart node="hydraulic"/>
            </movingTool>
        </movingTools>

        <movingParts>
            <movingPart node="hydraulic" referencePoint="ArmHydraulicRef" referenceFrame="ArmHydraulicRef">
                <translatingPart node="hydraulicPunch" />
            </movingPart>
        </movingParts>
        <sounds>
            <actionSound template="defaultHydraulicSound" pitchScale="0.6" volumeScale="2"   linkNode="concha"  actionNames="TOOL_MOVE_POS TOOL_MOVE_NEG" nodes="concha"/>
            <actionSound template="clackVar6"             pitchScale="1"   volumeScale="1"   linkNode="concha"  actionNames="TOOL_MOVE_END_POS_LIMIT"     nodes="concha"/>
            <actionSound template="cylinderPunch"         pitchScale="2"   volumeScale="0.3" linkNode="concha"  actionNames="TOOL_MOVE_END_POS_LIMIT"     nodes="concha"/>
            <actionSound template="clackVar6"             pitchScale="0.9" volumeScale="1"   linkNode="concha"  actionNames="TOOL_MOVE_END_NEG_LIMIT"     nodes="concha"/>
            <actionSound template="cylinderPunch"         pitchScale="2"   volumeScale="0.3" linkNode="concha"  actionNames="TOOL_MOVE_END_NEG_LIMIT"     nodes="concha"/>
        </sounds>
    </cylindered>
	
	 <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit shopDisplayUnit="LITER" fillTypeCategories="SHOVEL" capacity="1300">
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="SHOVEL" capacity="10000" showInShop="false" showOnHud="false" />
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
           <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" maxDelta="0.2" width="2" fillUnitIndex="1" />
                </volumes>
            </fillVolumeConfiguration>

        </fillVolumeConfigurations>

        <loadInfos>
            <loadInfo>
                <node node="fillVolumeLoadNode" width="2.0" length="0.1"  />
            </loadInfo>
        </loadInfos>

        <unloadInfos>
            <unloadInfo>
                <node node="fillVolumeUnloadNode" width="2.0" length="0.1"  />
            </unloadInfo>
        </unloadInfos>
    </fillVolume>

    <dischargeable requiresTipOcclusionArea="false" >
        <dischargeNode node="dischargeNode" fillUnitIndex="1" emptySpeed="2500" >
            <raycast node="dischargeNode" maxDistance="30" useWorldNegYDirection="true" yOffset="2"/>
            <info width="2.0" length="1" zOffset="0.5"/>

            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="emitterShape" effectClass="ParticleEffect" materialType="unloadingParticle"/>
                    <effectNode effectNode="grainEffect" materialType="unloading" fadeTime="0.5" alignXAxisToWorldY="true" extraDistance="0.15"/>
                </effectNode>
                <effectNode effectNode="smokeEffect" materialType="unloadingSmoke" fadeTime="0.5" />
            </effects>
        </dischargeNode>
    </dischargeable>

    <shovel>
        <shovelNode node="shovelNode" fillUnitIndex="1" loadInfoIndex="1" width="1.9" length="0.5" needsMovement="true" maxPickupAngle="105"/>
        <dischargeInfo node="dischargeNode" minSpeedAngle="105" maxSpeedAngle="175" />
    </shovel>

    <leveler fillUnitIndex="2" maxFillLevelPerMS="30">
        <levelerNode node="levelerNode" width="1.6" zOffset="0.2" minDropWidth="1" maxDropWidth="2.5" minDropDirOffset="1" maxDropDirOffset="1.5" minFillLevel="0.85">
            <smoothing allowed="true" radius="0.5" overlap="1.7" direction="0"/>
        </levelerNode>

        <pickUpDirection>1</pickUpDirection>
    </leveler>

     <ai>
        <agentAttachment width="1.5" height="0.9" length="3.2" lengthOffset="-0.3"/>
    </ai>

     <foliageBending>
	   <bendingNode minX="-0.47" maxX="0.47" minZ="-0.2" maxZ="0.6" yOffset="-0.242" node="0>0|1|1|5" />
        <bendingNode minX="-0.1" maxX="0.1" minZ="1.4" maxZ="-0.8" yOffset="0.6"/>
    </foliageBending>
	
    <baseMaterial>
        <material name="Concha_mat" baseNode="basePa">
            <shaderParameter name="colorMat0" value="0.8 0 0 0"/>
        </material>
    </baseMaterial>
	
	 <baseMaterialConfigurations price="100"  defaultColorIndex="4">
        <baseMaterialConfiguration name="$l10n_ui_colorBlack" color="FIAT_BLACKPAINT" material="0"/>
        <baseMaterialConfiguration name="$l10n_ui_colorRed" color="ALBUTT_RED1" material="0"/>
		<baseMaterialConfiguration name="$l10n_configuration_VALTRA_YELLOW1" color="VALTRA_YELLOW1" material="0"/> 
	    <baseMaterialConfiguration name="$l10n_configuration_NEWHOLLAND_BLUE1" color="NEWHOLLAND_BLUE1" material="0"/>
        <baseMaterialConfiguration name="$l10n_configuration_STARA_GREEN" color="STARA_GREEN" material="0"/>	
		<baseMaterialConfiguration name="$l10n_configuration_STARA_ORANGE" color="STARA_ORANGE" material="0"/>	
		<baseMaterialConfiguration name="$l10n_configuration_JOHNDEERE_GREEN1" color="JOHNDEERE_GREEN1"  material="0"/>      
	    <baseMaterialConfiguration  name="$l10n_configuration_CASEIH_RED2" color="CASEIH_RED2" material="0"/>
        <material name="Concha_mat" shaderParameter="colorMat0" />
    </baseMaterialConfigurations>

	<designConfigurations title="$l10n_configuration_Decal" >
        <designConfiguration name="$l10n_configuration_valueYes" price="0" vehicleType="concha">
            <objectChange node="0>0|2|8"  visibilityActive="true" visibilityInactive="false"/>
        </designConfiguration>
        <designConfiguration name="$l10n_configuration_valueNo" price="100" vehicleType="concha">
            <objectChange node="0>0|2|8" visibilityActive="false" visibilityInactive="true"/>
        </designConfiguration>
    </designConfigurations>

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

    <i3dMappings>
        <i3dMapping id="pa_main_component1" node="0>" />
        <i3dMapping id="basePa" node="0>0" />
        <i3dMapping id="topRefNode" node="0>0|0|1" />
        <i3dMapping id="attacherJoint" node="0>0|0|0" />
		
        <i3dMapping id="hydraulicIn01" node="0>0|0|2|1" />
        <i3dMapping id="hydraulicIn02" node="0>0|0|2|2" />
        <i3dMapping id="hydraulicIn01_detachedAdapter" node="0>0|0|2|0|1" />
        <i3dMapping id="hydraulicIn02_detachedAdapter" node="0>0|0|2|0|0" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|0|2|0" />
		
        <i3dMapping id="hydraulic" node="0>0|1|0|0" />
        <i3dMapping id="hydraulicPunch" node="0>0|1|0|0|0" />
        <i3dMapping id="concha" node="0>0|1|1" />
        <i3dMapping id="ArmHydraulicRef" node="0>0|1|1|0" />
		
		
        <i3dMapping id="exactFillRootNode" node="0>0|1|1|2|0" />
        <i3dMapping id="fillVolume" node="0>0|1|1|2|1" />
        <i3dMapping id="fillVolumeLoadNode" node="0>0|1|1|2|2" />
        <i3dMapping id="fillVolumeUnloadNode" node="0>0|1|1|2|3" />
        <i3dMapping id="dischargeNode" node="0>0|1|1|2|4" />
        <i3dMapping id="shovelNode" node="0>0|1|1|2|5" />
        <i3dMapping id="levelerNode" node="0>0|1|1|2|6" />
        <i3dMapping id="grainEffect" node="0>0|1|1|3|0" />
        <i3dMapping id="smokeEffect" node="0>0|1|1|3|1" />
        <i3dMapping id="emitterShape" node="0>0|1|1|3|2" />
    </i3dMappings>
</vehicle>
