<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="bucket" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/vehicle.xsd">
    <storeData>
        <name>$l10n_shopItem_fillableBucket</name>
        <functions>
            <function>$l10n_function_fillableBucket</function>
        </functions>
		<specs>
            <weight ignore="true"/>
        </specs>
		<image>store/store_fillableBucket.png</image>
		<allowLeasing>false</allowLeasing>
		<showInStore>true</showInStore>
        <canBeSold>true</canBeSold>
        <price>12</price>
        <rotation>0</rotation>
        <brand>LSFMINNOVATIONS</brand>
		<category>lsfmFarmEquipmentPackHandTools</category>
		<shopHeight>1.2</shopHeight>
        <shopTranslationOffset>0 -0.004 0</shopTranslationOffset>
        <shopRotationOffset>-0.216 0 0</shopRotationOffset>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>
	
    <base>
		<typeDesc>$l10n_shopItem_fillableBucket</typeDesc>
        <filename>objects/fillableBucket.i3d</filename>
        <size width="0.4" length="0.4" height="0.45" />
        <canBeReset>true</canBeReset>
		<supportsPickUp>true</supportsPickUp>
        <components>
            <component centerOfMass="0 0.1 0" solverIterationCount="10" mass="10"/>
        </components>
		<schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
        <showInVehicleMenu>true</showInVehicleMenu>
        <mapHotspot type="OTHER"/>
    </base>
	
	<configurationSets title="$l10n_configuration_fillVolume">
        <configurationSet name="$l10n_configuration_valueBulk">
            <configuration name="fillUnit"           index="1" />
            <configuration name="fillVolume"         index="2" />
        </configurationSet>
		
		<configurationSet name="$l10n_configuration_valueLiquid">
            <configuration name="fillUnit"           index="2" />
            <configuration name="fillVolume"         index="1" />
        </configurationSet>
    </configurationSets>
	
	<fillUnit>
        <fillUnitConfigurations>
			<fillUnitConfiguration name="$l10n_configuration_valueDefault" price="0" >
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="BULK" capacity="100" updateMass="false" showOnHud="false" showOnInfoHud="true" showInShop="false" >
                        <exactFillRootNode node="exactFillRootNode" />
                    </fillUnit>
                </fillUnits>
				
				<objectChange node="effects" visibilityActive="true" visibilityInactive="false"/>
				<objectChange node="fillTypeDecals" visibilityActive="false" visibilityInactive="true"/>
            </fillUnitConfiguration>
			
			<fillUnitConfiguration name="$l10n_configuration_valueDefault" price="0" >
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" fillTypeCategories="LIQUID" capacity="100" updateMass="false" showOnHud="true" showOnInfoHud="true" showInShop="false" >
                        <exactFillRootNode node="exactFillRootNode" />
						<dashboard displayType="ANIMATION" valueType="fillLevel" animName="fillLevelAnimation" />
						
						<fillTypeMaterials>
                            <material fillType="WATER" node="fillPlane" refNode="water_mat"/>
                            <material fillType="MILK" node="fillPlane" refNode="milk_mat"/>
                            <material fillType="BUFFALOMILK" node="fillPlane" refNode="milk_mat"/>
                            <material fillType="GOATMILK" node="fillPlane" refNode="milk_mat"/>
                            <material fillType="LOWFATMILK" node="fillPlane" refNode="milk_mat"/>
                            <material fillType="CREAM" node="fillPlane" refNode="milk_mat"/>
                        </fillTypeMaterials>
                    </fillUnit>
                </fillUnits>
				
				<objectChange node="effects" visibilityActive="false" visibilityInactive="true"/>
				<objectChange node="fillTypeDecals" visibilityActive="true" visibilityInactive="false"/>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>
		
	<fillVolume>
        <fillVolumeConfigurations>
            <fillVolumeConfiguration>
                <volumes>
                </volumes>
            </fillVolumeConfiguration>
            <fillVolumeConfiguration>
                <volumes>
                    <volume node="fillVolume" maxAllowedHeapAngle="20" fillUnitIndex="1" maxSubDivEdgeLength="0.6" />
                </volumes>
            </fillVolumeConfiguration>
        </fillVolumeConfigurations>

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

        <unloadInfos>
            <unloadInfo>
                <node node="fillVolumeUnloadNode" width="1.5" length="0.1" />
            </unloadInfo>
        </unloadInfos>
    </fillVolume>
	
	<!-- <fillTriggerVehicle triggerNode="fillTrigger" fillUnitIndex="1" litersPerSecond="200"/> -->
	
	<dischargeable requiresTipOcclusionArea="false">
        <dischargeNode node="dischargeNode" emptySpeed="100" fillUnitIndex="1" maxDistance="2" canStartDischargeAutomatically="true">
			<effects>
				<effectNode effectClass="TipEffect">
					<effectNode effectNode="emitterShape" effectClass="ParticleEffect" materialType="unloadingParticle"/>
				</effectNode>
				<effectNode effectNode="smokeEffect" materialType="unloadingSmoke" fadeTime="0.5" />
			</effects>
		</dischargeNode>
    </dischargeable>
	
	<animations>
        <animation name="fillLevelAnimation">
			<part node="fillPlane"  startTime="0.000" endTime="1.000" startScale="1 1 1" endScale="1.22777426 1.22777426 1.22777426" startTrans="0 0 0" endTrans="0 0.361 0" />
        </animation>
    </animations>
	
	<dynamicMount triggerNode="dynamicMountTrigger" />
	
	<tensionBeltObject>
        <meshNodes>
            <meshNode node="bucketGalvanized"/>
        </meshNodes>
    </tensionBeltObject>

    <i3dMappings>
        <i3dMapping id="fillableBucket_main_component1" node="0>" />
		<i3dMapping id="fillUnit" node="0>0" />
        <i3dMapping id="dischargeNode" node="0>0|0" />
		<i3dMapping id="exactFillRootNode" node="0>0|1" />
		<i3dMapping id="fillVolume" node="0>0|2" />
		<i3dMapping id="fillVolumeLoadNode" node="0>0|3" />
		<i3dMapping id="fillVolumeUnloadNode" node="0>0|4" />
		<i3dMapping id="effects" node="0>0|5" />
		<i3dMapping id="emitterShape" node="0>0|5|0" />
		<i3dMapping id="smokeEffect" node="0>0|5|1" />
		<i3dMapping id="dynamicMountTrigger" node="0>0|7" />
		<i3dMapping id="bucketGalvanized" node="0>1" />
		<i3dMapping id="externalControlTrigger" node="0>2" />
		<i3dMapping id="fillTypeDecals" node="0>1|1" />
		<i3dMapping id="fillPlane" node="0>3|0" />
		<i3dMapping id="water_mat" node="0>4|0" />
		<i3dMapping id="milk_mat" node="0>4|1" />
    </i3dMappings>
</vehicle>
