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

    <storeData>
        <name>            
			<en>Bucket</en>
            <de>Schaufel</de>
        </name>
        <functions>
            <function>$l10n_function_bucket</function>
        </functions>		
        <specs>
            <combination xmlFilename="R1055F.xml"/>
			<weight ignore="true" />
        </specs>
        <image>store_bucket2.dds</image>
        <price>5000</price>
        <lifetime>600</lifetime>
        <rotation>90</rotation>
        <brand>EUROMACH</brand>
        <category>wood</category>
        			
        <shopRotationOffset>0 180 0</shopRotationOffset>	
        <shopTranslationOffset>0 -0.212 0</shopTranslationOffset>
        
    </storeData>	

    <base>
        <typeDesc>$l10n_typeDesc_EuromachTool</typeDesc>
        <filename>bucket1.i3d</filename>
        <size width="1.5" length="2"/>
        <components>
            <component  solverIterationCount="10" mass="151" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <mapHotspot type="TOOL" />
    </base>
	
    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="mecalacfront" >
                <subType name="excavatorFastCoupler" showWarning="true"/>
            </inputAttacherJoint>
        </inputAttacherJoints>
    </attachable>	


    <fillUnit>
        <fillUnitConfigurations>
            <fillUnitConfiguration>
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="SHOVEL" updateMass="false" capacity="2000" >
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" allSidePlanes="false" maxAllowedHeapAngle="60" fillUnitIndex="1" />				
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

        <loadInfos>
            <loadInfo>
                <node node="fillVolumeLoadNode" width="1" length="0.2" />
            </loadInfo>
        </loadInfos>

        <unloadInfos>
            <unloadInfo>
                <node node="fillVolumeUnloadNode" width="1" length="0.2" />
            </unloadInfo>
        </unloadInfos>
    </fillVolume>
	
    <dischargeable requiresTipOcclusionArea="false">
        <dischargeNode node="fillVolumeDischargeNode" fillUnitIndex="1" emptySpeed="1550" >
            <raycast node="fillVolumeDischargeNode" maxDistance="30" useWorldNegYDirection="true" yOffset="2"/>
            <info width="1.0" length="1" zOffset="0.5"/>

            <effects>
                <effectNode effectClass="TipEffect">
                    <effectNode effectNode="emitterShape" effectClass="ParticleEffect"  materialType="unloadingParticle"/>
                    <effectNode effectNode="grainNorm" materialType="unloading" materialTypeId="3" fadeTime="0.5" alignXAxisToWorldY="true" />
                </effectNode>
                <effectNode effectNode="smokeNorm" materialType="smoke" materialTypeId="1" fadeTime="0.5" />
            </effects>
        </dischargeNode>
    </dischargeable>

    <shovel>
        <shovelNode node="pickUpNode" fillUnitIndex="1" loadInfoIndex="1" width="1.2" length="0.5" needsMovement="true" maxPickupAngle="140"/>
        <dischargeInfo node="fillVolumeDischargeNode" minSpeedAngle="125" maxSpeedAngle="160" />
    </shovel>

    <ai>
        <agentAttachment width="1.3" height="1.5" length="1.32" lengthOffset="0"/>
    </ai>

    <foliageBending>
        <bendingNode minX="-0.6" maxX="0.6" minZ="-0.7" maxZ="0.75" yOffset="0.02" />
    </foliageBending>
    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="6" fieldMultiplier="2"/>	
		
    
	<!--<tensionBeltObject>
        <meshNodes>
            <meshNode node="vis"/>			
        </meshNodes>
    </tensionBeltObject>-->
	
	
	
    <i3dMappings>
        <i3dMapping id="bucket1" node="0>" />
        <i3dMapping id="attacherJoint" node="0>0" />
        <i3dMapping id="tipTrigger" node="0>1" />
        <i3dMapping id="vis" node="0>2" />
        <i3dMapping id="colParts" node="0>2|0" />
        <i3dMapping id="colPart1" node="0>2|0|0" />
        <i3dMapping id="colPart3" node="0>2|0|1" />
        <i3dMapping id="colPart4" node="0>2|0|2" />
        <i3dMapping id="colPart5" node="0>2|0|3" />
        <i3dMapping id="colPart6" node="0>2|0|4" />
        <i3dMapping id="effectNodeRot" node="0>2|1" />
        <i3dMapping id="grainNorm" node="0>2|1|0" />
        <i3dMapping id="smokeNorm" node="0>2|1|1" />
        <i3dMapping id="emitterShape" node="0>2|2" />
        <i3dMapping id="fillVolumeNode" node="0>2|3" />
        <i3dMapping id="exactFillRootNode" node="0>2|3|0" />
        <i3dMapping id="fillVolume" node="0>2|3|1" />
        <i3dMapping id="fillVolumeDischargeNode" node="0>2|3|2" />
        <i3dMapping id="fillVolumeLoadNode" node="0>2|3|3" />
        <i3dMapping id="fillVolumeUnloadNode" node="0>2|3|4" />
        <i3dMapping id="pickUpNode" node="0>2|4" />
        <i3dMapping id="tipReferenceNode" node="0>2|5" />
    </i3dMappings>
</vehicle>
